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.

Studio: use one expand icon and one download icon everywhere (#11411)

Michael Hane0c871fa0663
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index 82ad3503ea1..569b98d28fb 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -86,7 +86,6 @@ import {
Delete02Icon,
Download01Icon,
DragDropVerticalIcon,
- DownloadSquare01Icon,
Edit03Icon,
FolderAddIcon,
FolderAttachmentIcon,
@@ -2398,7 +2397,7 @@ export function AppSidebar() {
},
},
export: {
- icon: DownloadSquare01Icon,
+ icon: Download01Icon,
label: t("shell.navigation.export"),
active: pathname === "/export" || pathname.startsWith("/export/"),
spinner: exportInProgress,
diff --git a/studio/frontend/src/components/assistant-ui/markdown-text.tsx b/studio/frontend/src/components/assistant-ui/markdown-text.tsx
index c0a575b63ef..09397f8b326 100644
--- a/studio/frontend/src/components/assistant-ui/markdown-text.tsx
+++ b/studio/frontend/src/components/assistant-ui/markdown-text.tsx
@@ -42,7 +42,11 @@ import {
useAuiState,
useMessagePartText,
} from "@assistant-ui/react";
-import { Copy01Icon, Download01Icon } from "@hugeicons/core-free-icons";
+import {
+ Copy01Icon,
+ Download01Icon,
+ ExpandIcon,
+} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { createMathPlugin } from "@streamdown/math";
import { mermaid } from "@streamdown/mermaid";
@@ -123,17 +127,23 @@ const STREAMDOWN_SHIKI_THEME = [
unslothLightTheme,
unslothDarkTheme,
] satisfies NonNullable<StreamdownProps["shikiTheme"]>;
-// Streamdown ships its own copy glyph for the table controls; swap in copy-01 like everywhere else.
+// Streamdown ships its own glyphs for the table controls; swap in ours so copy,
+// download and expand match the icons used everywhere else.
// `strokeWidth` is dropped, not forwarded: SVG types it `string | number`, HugeiconsIcon wants a number.
-function StreamdownCopyIcon({
- size,
- strokeWidth: _strokeWidth,
- ...props
-}: ComponentProps<"svg"> & { size?: number }) {
- return <HugeiconsIcon icon={Copy01Icon} size={size} {...props} />;
+function streamdownIcon(icon: typeof Copy01Icon) {
+ return function StreamdownIcon({
+ size,
+ strokeWidth: _strokeWidth,
+ ...props
+ }: ComponentProps<"svg"> & { size?: number }) {
+ return <HugeiconsIcon icon={icon} size={size} {...props} />;
+ };
}
const STREAMDOWN_ICONS = {
- CopyIcon: StreamdownCopyIcon,
+ CopyIcon: streamdownIcon(Copy01Icon),
+ DownloadIcon: streamdownIcon(Download01Icon),
+ // Streamdown's key for the table's enlarge control.
+ Maximize2Icon: streamdownIcon(ExpandIcon),
} satisfies NonNullable<StreamdownProps["icons"]>;
const { withSmoothContextProvider } = INTERNAL;
diff --git a/studio/frontend/src/components/assistant-ui/tool-code-cell.tsx b/studio/frontend/src/components/assistant-ui/tool-code-cell.tsx
index a988e37553c..60c48587c3f 100644
--- a/studio/frontend/src/components/assistant-ui/tool-code-cell.tsx
+++ b/studio/frontend/src/components/assistant-ui/tool-code-cell.tsx
@@ -8,10 +8,9 @@ import { MAX_HIGHLIGHT_CHARS, codeFence } from "@/lib/markdown-plugins";
import { downloadFile, isDownloadCancelled } from "@/lib/native-files";
import { Tick02Icon } from "@/lib/tick-icon";
import { toast } from "@/lib/toast";
-import { Copy01Icon } from "@hugeicons/core-free-icons";
+import { Copy01Icon, Download01Icon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { code as codePlugin } from "@streamdown/code";
-import { DownloadIcon } from "lucide-react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { Streamdown } from "streamdown";
@@ -80,7 +79,7 @@ function DownloadBtn({ code, name }: { code: string; name: string }) {
className="inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
aria-label="Download"
>
- <DownloadIcon className="size-3" />
+ <HugeiconsIcon icon={Download01Icon} className="size-3" />
Download
</button>
);
diff --git a/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx b/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx
index b16eb53779d..f8bc06c2ee2 100644
--- a/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx
+++ b/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx
@@ -14,7 +14,7 @@ import {
} from "@/lib/floating-panel-order";
import { cn } from "@/lib/utils";
import {
- ArrowExpand01Icon,
+ ExpandIcon,
DragDropVerticalIcon,
Globe02Icon,
} from "@hugeicons/core-free-icons";
@@ -459,7 +459,7 @@ export function ApiMonitorOverlay(): ReactElement | null {
className="mt-1 flex h-[33px] w-full items-center justify-center gap-[8.5px] rounded-full bg-muted/60 text-ui-13p5 font-medium tracking-nav text-nav-fg transition-colors hover:bg-nav-surface-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring dark:bg-background/50"
>
<HugeiconsIcon
- icon={ArrowExpand01Icon}
+ icon={ExpandIcon}
strokeWidth={1.75}
className="size-icon shrink-0"
/>
diff --git a/studio/frontend/src/features/chat/artifacts/artifact-surface.tsx b/studio/frontend/src/features/chat/artifacts/artifact-surface.tsx
index 45a6fb5f5f8..568c49965dc 100644
--- a/studio/frontend/src/features/chat/artifacts/artifact-surface.tsx
+++ b/studio/frontend/src/features/chat/artifacts/artifact-surface.tsx
@@ -15,8 +15,12 @@ import { copyToClipboard } from "@/lib/copy-to-clipboard";
import { downloadFile, isDownloadCancelled } from "@/lib/native-files";
import { toast } from "@/lib/toast";
import { cn } from "@/lib/utils";
-import { EyeIcon, Maximize2Icon, XIcon } from "lucide-react";
-import { Copy01Icon, Download01Icon } from "@hugeicons/core-free-icons";
+import { EyeIcon, XIcon } from "lucide-react";
+import {
+ Copy01Icon,
+ Download01Icon,
+ ExpandIcon,
+} from "@hugeicons/core-free-icons";
import { Tick02Icon } from "@/lib/tick-icon";
import { HugeiconsIcon } from "@hugeicons/react";
import {
@@ -308,7 +312,7 @@ export function ArtifactSurface({
onClick={onOpenFullscreen}
aria-label="Open canvas fullscreen"
>
- <Maximize2Icon className="size-4" />
+ <HugeiconsIcon icon={ExpandIcon} className="size-4" />
</Button>
) : null}
<Button
diff --git a/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx b/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx
index d02a15252af..023cd572704 100644
--- a/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx
+++ b/studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx
@@ -23,11 +23,10 @@ import {
import { downloadFile, isDownloadCancelled } from "@/lib/native-files";
import { cn } from "@/lib/utils";
-import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Download01Icon, Search01Icon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import {
BookmarkIcon,
- DownloadIcon,
EyeIcon,
LayoutListIcon,
PencilIcon,
@@ -1319,7 +1318,7 @@ function ExportModal({
Cancel
</Button>
<Button size="sm" onClick={handleExport}>
- <DownloadIcon className="mr-1.5 size-3.5" />
+ <HugeiconsIcon icon={Download01Icon} className="mr-1.5 size-3.5" />
Download
</Button>
</div>
@@ -1611,7 +1610,7 @@ function PromptDetail({
className="flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title="Export"
>
- <DownloadIcon className="size-4" />
+ <HugeiconsIcon icon={Download01Icon} className="size-4" />
</button>
<button
type="button"
@@ -1939,7 +1938,7 @@ function PromptListDetail({
className="flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground transition-colors"
title="Export"
>
- <DownloadIcon className="size-4" />
+ <HugeiconsIcon icon={Download01Icon} className="size-4" />
</button>
<button
type="button"
@@ -2446,7 +2445,7 @@ export function PromptStorageDialog({
onClick={openBulkExport}
className="h-8 gap-1.5 text-xs"
>
- <DownloadIcon className="size-3.5" />
+ <HugeiconsIcon icon={Download01Icon} className="size-3.5" />
Export
</Button>
<div className="ml-1 h-5 w-px bg-border/60 shrink-0" />
diff --git a/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx b/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
index fd4b58ed638..fea428ffc4d 100644
--- a/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
+++ b/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
@@ -5,7 +5,7 @@ import {
AudioWave01Icon,
ChefHatIcon,
DashboardCircleIcon,
- DownloadSquare01Icon,
+ Download01Icon,
DragDropVerticalIcon,
FlimSlateIcon,
Folder01Icon,
@@ -41,7 +41,7 @@ const ITEM_META: Record<
video: { icon: FlimSlateIcon, labelKey: "shell.navigation.video" },
audio: { icon: AudioWave01Icon, labelKey: "shell.navigation.audio" },
recipes: { icon: ChefHatIcon, labelKey: "shell.navigation.recipes" },
- export: { icon: DownloadSquare01Icon, labelKey: "shell.navigation.export" },
+ export: { icon: Download01Icon, labelKey: "shell.navigation.export" },
api: { icon: Globe02Icon, labelKey: "shell.navigation.api" },
};