mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-20 15:51:23 +02:00
Fix some things
This commit is contained in:
@@ -8,13 +8,13 @@ interface Props {
|
|||||||
|
|
||||||
export function ResponseHeaders({ headers }: Props) {
|
export function ResponseHeaders({ headers }: Props) {
|
||||||
return (
|
return (
|
||||||
<dl className="text-xs w-full font-mono">
|
<dl className="text-xs w-full h-full font-mono overflow-auto">
|
||||||
{headers.map((h, i) => {
|
{headers.map((h, i) => {
|
||||||
return (
|
return (
|
||||||
<HStack
|
<HStack
|
||||||
space={3}
|
space={3}
|
||||||
key={i}
|
key={i}
|
||||||
className={classnames(i > 0 && 'border-t border-highlightSecondary', 'py-1')}
|
className={classnames(i > 0 ? 'border-t border-highlightSecondary py-1' : 'pb-1')}
|
||||||
>
|
>
|
||||||
<dd className="w-1/3 text-violet-600 select-text cursor-text">{h.name}</dd>
|
<dd className="w-1/3 text-violet-600 select-text cursor-text">{h.name}</dd>
|
||||||
<dt className="w-2/3 select-text cursor-text break-all">{h.value}</dt>
|
<dt className="w-2/3 select-text cursor-text break-all">{h.value}</dt>
|
||||||
|
|||||||
@@ -156,8 +156,9 @@ export const ResponsePane = memo(function ResponsePane({ style, className }: Pro
|
|||||||
value={activeTab}
|
value={activeTab}
|
||||||
onChangeValue={setActiveTab}
|
onChangeValue={setActiveTab}
|
||||||
label="Response"
|
label="Response"
|
||||||
className="px-3"
|
|
||||||
tabs={tabs}
|
tabs={tabs}
|
||||||
|
className="ml-3 mr-1"
|
||||||
|
tabListClassName="mt-1.5"
|
||||||
>
|
>
|
||||||
<TabContent value="headers">
|
<TabContent value="headers">
|
||||||
<ResponseHeaders headers={activeResponse?.headers ?? []} />
|
<ResponseHeaders headers={activeResponse?.headers ?? []} />
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ const _SidebarItem = forwardRef(function SidebarItem(
|
|||||||
{isResponseLoading(latestResponse) ? (
|
{isResponseLoading(latestResponse) ? (
|
||||||
<Icon spin size="sm" icon="update" />
|
<Icon spin size="sm" icon="update" />
|
||||||
) : (
|
) : (
|
||||||
<StatusTag className="text-2xs" response={latestResponse} />
|
<StatusTag className="text-2xs dark:opacity-80" response={latestResponse} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ export const PairEditor = memo(function PairEditor({
|
|||||||
className={classnames(
|
className={classnames(
|
||||||
className,
|
className,
|
||||||
'@container',
|
'@container',
|
||||||
'pb-2 grid',
|
'pb-2 grid overflow-auto max-h-full',
|
||||||
// Move over the width of the drag handle
|
// Move over the width of the drag handle
|
||||||
'-ml-3',
|
'-ml-3',
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ export const TabContent = memo(function TabContent({
|
|||||||
<div
|
<div
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
data-tab={value}
|
data-tab={value}
|
||||||
className={classnames(className, 'tab-content', 'overflow-auto hidden w-full h-full')}
|
className={classnames(className, 'tab-content', 'hidden w-full h-full')}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user