-
- {request.name}
-
-
-
-
-
+
+
+ {request.name}
+
+
+
+
)}
diff --git a/src-web/components/Button.tsx b/src-web/components/Button.tsx
index a7fe0180..6f97d6a9 100644
--- a/src-web/components/Button.tsx
+++ b/src-web/components/Button.tsx
@@ -47,7 +47,7 @@ export const Button = forwardRef(function Button(
className,
'outline-none',
'border border-transparent focus-visible:border-blue-300',
- 'transition-all rounded-md flex items-center',
+ 'rounded-md flex items-center',
colorStyles[color || 'default'],
justify === 'start' && 'justify-start',
justify === 'center' && 'justify-center',
diff --git a/src-web/components/HeaderEditor.tsx b/src-web/components/HeaderEditor.tsx
index 43b80696..38f324d9 100644
--- a/src-web/components/HeaderEditor.tsx
+++ b/src-web/components/HeaderEditor.tsx
@@ -59,35 +59,34 @@ export function HeaderEditor({ request }: Props) {
};
return (
-
- {pairs.map((p, i) => (
-
- ))}
-
+
+
+ {pairs.map((p, i) => (
+
+ ))}
+
+
);
}
function FormRow({
- autoFocus,
pair,
onChange,
onDelete,
}: {
- autoFocus?: boolean;
pair: PairWithId;
onChange: (pair: PairWithId) => void;
onDelete?: (pair: PairWithId) => void;
}) {
return (
-
+
onChange({ id: pair.id, header: { value } })}
/>
- {onDelete && onDelete(pair)} className="w-auto" />}
+ {onDelete && (
+ onDelete(pair)}
+ className="invisible group-hover:visible"
+ />
+ )}
);
}
diff --git a/src-web/components/Icon.tsx b/src-web/components/Icon.tsx
index 32a58196..0247c15e 100644
--- a/src-web/components/Icon.tsx
+++ b/src-web/components/Icon.tsx
@@ -64,7 +64,7 @@ export function Icon({ icon, spin, size = 'md', className }: IconProps) {
(function IconButt
ref={ref}
className={classnames(
className,
- 'group',
+ 'text-gray-700 hover:text-gray-1000',
'!px-0',
size === 'md' && 'w-9',
size === 'sm' && 'w-9',
@@ -28,11 +28,7 @@ export const IconButton = forwardRef(function IconButt
size={iconSize}
icon={icon}
spin={spin}
- className={classnames(
- iconClassName,
- 'text-gray-700 group-hover:text-gray-1000',
- props.disabled && 'opacity-70',
- )}
+ className={classnames(iconClassName, props.disabled && 'opacity-70')}
/>
);
diff --git a/src-web/components/ResponsePane.tsx b/src-web/components/ResponsePane.tsx
index 1ef081bb..40379bf7 100644
--- a/src-web/components/ResponsePane.tsx
+++ b/src-web/components/ResponsePane.tsx
@@ -54,7 +54,7 @@ export function ResponsePane({ requestId, className }: Props) {
<>
{response.status > 0 && (
@@ -97,12 +97,7 @@ export function ResponsePane({ requestId, className }: Props) {
})),
]}
>
-
+
diff --git a/src-web/components/ScrollArea.tsx b/src-web/components/ScrollArea.tsx
index fd2acb46..3d6936e7 100644
--- a/src-web/components/ScrollArea.tsx
+++ b/src-web/components/ScrollArea.tsx
@@ -9,7 +9,7 @@ interface Props {
export function ScrollArea({ children, className }: Props) {
return (
-
+
{children}
@@ -28,7 +28,7 @@ function ScrollBar({ orientation }: { orientation: 'vertical' | 'horizontal' })
orientation === 'horizontal' && 'h-1.5 flex-col',
)}
>
-
+
);
}
diff --git a/src-web/components/Stacks.tsx b/src-web/components/Stacks.tsx
index 4f321aa0..1046d9b7 100644
--- a/src-web/components/Stacks.tsx
+++ b/src-web/components/Stacks.tsx
@@ -92,7 +92,7 @@ function BaseStack({ className, alignItems, justifyContent, children, as }: Base
-
+
{tabs.map((t) => (
@@ -75,7 +82,7 @@ export function TabContent({ value, children, className }: TabContentProps) {
{children}