Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Library delete dialog: no dark mode border, cancel on outside click (#12222)
Michael Han282d170425a9
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsxindex d14d9acf8e0..f12956f34aa 100644--- a/studio/frontend/src/components/app-sidebar.tsx+++ b/studio/frontend/src/components/app-sidebar.tsx@@ -5930,7 +5930,7 @@ export function AppSidebar() {</DialogDescription></DialogHeader>{deleteTargetHasFiles(confirmingDelete) ? (- <div className="flex items-start justify-between gap-4 rounded-md border border-border/60 bg-muted/35 px-3 py-2.5">+ <div className="flex items-start justify-between gap-4 rounded-md border border-border/60 bg-muted/35 px-3 py-2.5 dark:border-transparent"><label htmlFor="delete-files-on-delete" className="min-w-0 space-y-1"><span className="block text-sm font-medium text-foreground">{t("shell.selection.deleteFilesLabel")}diff --git a/studio/frontend/src/components/ui/alert-dialog.tsx b/studio/frontend/src/components/ui/alert-dialog.tsxindex 83894c91aea..3fcb1051f2c 100644--- a/studio/frontend/src/components/ui/alert-dialog.tsx+++ b/studio/frontend/src/components/ui/alert-dialog.tsx@@ -52,14 +52,17 @@ function AlertDialogContent({className,size = "default",overlayClassName,+ onOverlayClick,...props}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {size?: "default" | "sm";overlayClassName?: string;+ /** Alert dialogs ignore outside clicks; set this to cancel on backdrop click. */+ onOverlayClick?: () => void;}) {return (<AlertDialogPortal>- <AlertDialogOverlay className={overlayClassName} />+ <AlertDialogOverlay className={overlayClassName} onClick={onOverlayClick} /><AlertDialogPrimitive.Contentdata-slot="alert-dialog-content"data-size={size}diff --git a/studio/frontend/src/features/chat/components/delete-chat-files-switch.tsx b/studio/frontend/src/features/chat/components/delete-chat-files-switch.tsxindex d9ca43f4fb4..1b54c3b7391 100644--- a/studio/frontend/src/features/chat/components/delete-chat-files-switch.tsx+++ b/studio/frontend/src/features/chat/components/delete-chat-files-switch.tsx@@ -24,7 +24,7 @@ export function DeleteChatFilesSwitch({const t = useT();const label = labelOverride ?? t("shell.selection.deleteFilesLabel");return (- <div className="flex items-start justify-between gap-4 rounded-md border border-border/60 bg-muted/35 px-3 py-2.5">+ <div className="flex items-start justify-between gap-4 rounded-md border border-border/60 bg-muted/35 px-3 py-2.5 dark:border-transparent"><label htmlFor={id} className="min-w-0 space-y-1"><span className="block text-sm font-medium text-foreground">{label}diff --git a/studio/frontend/src/features/library/chats/chats-library.tsx b/studio/frontend/src/features/library/chats/chats-library.tsxindex b7649494035..42c5b1a5cc8 100644--- a/studio/frontend/src/features/library/chats/chats-library.tsx+++ b/studio/frontend/src/features/library/chats/chats-library.tsx@@ -1737,7 +1737,7 @@ export function ChatsLibrary({onSubmit={(name) => renamingSection && renameCustomSection(renamingSection.id, name)}/><AlertDialog open={pendingDelete !== null} onOpenChange={(open) => !open && setPendingDelete(null)}>- <AlertDialogContent>+ <AlertDialogContent onOverlayClick={() => setPendingDelete(null)}><AlertDialogHeader><AlertDialogTitle className="break-words">{deleteCopy?.title}</AlertDialogTitle><AlertDialogDescription>{deleteCopy?.description}</AlertDialogDescription>diff --git a/studio/frontend/src/features/library/components/library-dialogs.tsx b/studio/frontend/src/features/library/components/library-dialogs.tsxindex 29126282273..292c92f1c55 100644--- a/studio/frontend/src/features/library/components/library-dialogs.tsx+++ b/studio/frontend/src/features/library/components/library-dialogs.tsx@@ -130,7 +130,7 @@ export function ConfirmDeleteDialog({const t = useT();return (<AlertDialog open={open} onOpenChange={onOpenChange}>- <AlertDialogContent>+ <AlertDialogContent onOverlayClick={() => onOpenChange(false)}><AlertDialogHeader><AlertDialogTitle>{title}</AlertDialogTitle><AlertDialogDescription>{description}</AlertDialogDescription>