Commit 23426d797 for llama.cpp
commit 23426d797e4fc3d50a56152fb04acf811966679b
Author: Aleksander Grygier <aleksander.grygier@gmail.com>
Date: Mon Nov 2 12:35:25 2026 +0100
ui: align alert dialog styling with other overlay surfaces (#31312)
Use the popover background, softer border, rounded-xl corners and
shadow-md like dropdowns, hover cards and the settings dialog, and
match the dialog title line height.
Assisted-by: Claude (Opus 5.5 Medium)
diff --git a/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte b/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
index a9a321437..496c2dbe3 100644
--- a/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
+++ b/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
@@ -19,13 +19,13 @@
<AlertDialogPrimitive.Content
bind:ref
class={cn(
- 'fixed z-[999999] grid w-full gap-4 border bg-background p-6 shadow-lg duration-200',
+ 'fixed z-[999999] grid w-full gap-4 border border-border bg-popover p-6 text-popover-foreground shadow-md duration-200 dark:border-border/20',
// Mobile: Bottom sheet behavior
- 'right-0 bottom-0 left-0 max-h-[100dvh] translate-x-0 translate-y-0 overflow-y-auto rounded-t-lg',
+ 'right-0 bottom-0 left-0 max-h-[100dvh] translate-x-0 translate-y-0 overflow-y-auto rounded-t-xl',
'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:slide-out-to-bottom-full',
'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-bottom-full',
// Desktop: Centered dialog behavior
- 'sm:top-[50%] sm:right-auto sm:bottom-auto sm:left-[50%] sm:max-h-[100vh] sm:max-w-lg sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rounded-lg',
+ 'sm:top-[50%] sm:right-auto sm:bottom-auto sm:left-[50%] sm:max-h-[100vh] sm:max-w-lg sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rounded-xl',
'sm:data-[state=closed]:slide-out-to-bottom-0 sm:data-[state=closed]:zoom-out-95',
'sm:data-[state=open]:slide-in-from-bottom-0 sm:data-[state=open]:zoom-in-95',
className
diff --git a/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte b/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte
index 1bf3a22b4..204855c0b 100644
--- a/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte
+++ b/tools/ui/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte
@@ -11,7 +11,7 @@
<AlertDialogPrimitive.Title
bind:ref
- class={cn('text-lg font-semibold', className)}
+ class={cn('text-lg leading-none font-semibold', className)}
data-slot="alert-dialog-title"
{...restProps}
/>