Skip to content

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.

Fix on-device locations dialog layout (#6743)

Lee Jackson07578eab60f7
diff --git a/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx b/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx
index 20a4eca4ddf..caa89db196f 100644
--- a/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx
+++ b/studio/frontend/src/features/hub/catalog/on-device-folders-dialog.tsx
@@ -180,7 +180,7 @@ export function OnDeviceFoldersDialog({
<>
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent
- className="max-w-[600px] gap-0 overflow-hidden p-0"
+ className="gap-0 overflow-hidden p-0 sm:max-w-[620px] lg:max-w-[660px] xl:max-w-[680px] [&_[data-slot=dialog-close]]:right-3 [&_[data-slot=dialog-close]]:top-3"
overlayClassName="bg-black/20 backdrop-blur-none"
>
<DialogHeader className="border-b border-border/60 px-5 py-4">
@@ -319,7 +319,12 @@ export function OnDeviceFoldersDialog({
return (
<div
key={folder.id}
- className="flex min-h-12 items-center gap-3 border-b border-border/50 px-3 py-2 last:border-b-0"
+ className={cn(
+ "grid min-h-12 w-full items-center gap-3 border-b border-border/50 px-3 py-2 last:border-b-0",
+ isTauri
+ ? "grid-cols-[2rem_minmax(0,1fr)_2rem_2rem]"
+ : "grid-cols-[2rem_minmax(0,1fr)_2rem]",
+ )}
>
<div className="flex size-8 shrink-0 items-center justify-center rounded-[9px] bg-muted text-muted-foreground">
<HugeiconsIcon
@@ -328,13 +333,18 @@ export function OnDeviceFoldersDialog({
className="size-4"
/>
</div>
- <div className="min-w-0 flex-1">
- <p className="truncate text-[12.5px] font-medium text-foreground">
+ <div className="min-w-0 overflow-hidden">
+ <p
+ className="block w-full truncate text-[12.5px] font-medium text-foreground"
+ title={pathTail(folder.path)}
+ >
{pathTail(folder.path)}
</p>
<Tooltip>
<TooltipTrigger asChild={true}>
- <p className="truncate font-mono text-[10.5px] text-muted-foreground">
+ <p
+ className="block w-full truncate font-mono text-[10.5px] text-muted-foreground"
+ >
{folder.path}
</p>
</TooltipTrigger>