Skip to content

An open-source, faster Devin alternative

TypeScript

fix(web): refine dialog — lighter focus/shadow, spaced close, button hierarchy

Igor Zalutskif6d460c69a8b
diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsx
index 5002a31f..36b736b1 100644
--- a/web/src/components/ui/dialog.tsx
+++ b/web/src/components/ui/dialog.tsx
@@ -69,7 +69,7 @@ function DialogContent({
<DialogPrimitive.Close data-slot="dialog-close" asChild>
<Button
variant="ghost"
- className="absolute top-2 right-2"
+ className="text-muted-foreground absolute top-3.5 right-3.5"
size="icon-sm"
>
<XIcon />
diff --git a/web/src/components/ui/input.tsx b/web/src/components/ui/input.tsx
index 885a8273..55094410 100644
--- a/web/src/components/ui/input.tsx
+++ b/web/src/components/ui/input.tsx
@@ -8,7 +8,7 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
type={type}
data-slot="input"
className={cn(
- 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/30 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm',
+ 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring disabled:bg-input/50 aria-invalid:border-destructive dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
className,
)}
{...props}
diff --git a/web/src/index.css b/web/src/index.css
index ef748c3c..03c00296 100644
--- a/web/src/index.css
+++ b/web/src/index.css
@@ -120,7 +120,7 @@
blur + negative spread + low opacity, warm-ink tinted, so it reads as a
gentle lift rather than a crude default drop shadow. */
--shadow-overlay:
- 0 12px 40px -12px rgb(20 19 17 / 0.18), 0 2px 8px -4px rgb(20 19 17 / 0.1);
+ 0 10px 30px -14px rgb(20 19 17 / 0.1), 0 1px 2px -1px rgb(20 19 17 / 0.04);
}
/* ------------------------------------------------------------------
diff --git a/web/src/pages/APIKeys.tsx b/web/src/pages/APIKeys.tsx
index 61a8715e..c74871bc 100644
--- a/web/src/pages/APIKeys.tsx
+++ b/web/src/pages/APIKeys.tsx
@@ -199,7 +199,7 @@ export default function APIKeys() {
<DialogFooter className="mt-4">
<Button
type="button"
- variant="ghost"
+ variant="outline"
onClick={() => {
setShowCreate(false)
setNewKeyName('')