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
Studio: steady pinned model drop line and pill-shaped project drop highlight (#11986)
Michael Handd53ac06ce7a
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsxindex 1b013a5af6c..7975779bd00 100644--- a/studio/frontend/src/components/app-sidebar.tsx+++ b/studio/frontend/src/components/app-sidebar.tsx@@ -342,6 +342,9 @@ const DROP_CUE_BOTTOM = `${DROP_CUE_BASE} before:bottom-px`;// with the same border as the line. Kept inside the box for the same clipping reason.const DROP_INTO_CUE ="before:pointer-events-none before:absolute before:inset-x-1 before:inset-y-0 before:rounded-2xl before:bg-primary/8 before:border-[1.5px] before:border-primary before:content-['']";+// Folder rows match their hover pill.+const DROP_INTO_ROW_CUE =+ "before:pointer-events-none before:absolute before:inset-x-0 before:top-0 before:bottom-px before:rounded-full before:bg-primary/8 before:border-[1.5px] before:border-primary before:content-['']";// The menu keeps a 1px gap between rows. A pointer resting on that gap would hit the section// instead, which answers with its last slot, so each row's box reaches over the gap below it.const DROP_ROW_HIT = "pb-px -mb-px";@@ -3864,7 +3867,7 @@ export function AppSidebar() {draggingRow?.id === project.id && "opacity-50",dropCueClass(order.scope, project.id),// Lit while a chat is over the folder row or any of the chats inside it.- dnd.ringLit(folderRingKey(project.id)) && DROP_INTO_CUE,+ dnd.ringLit(folderRingKey(project.id)) && DROP_INTO_ROW_CUE,)}onContextMenu={() =>selectProjectForContextMenu(project.id)diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsxindex faaa00f9043..d8c094ebfd6 100644--- a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx+++ b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx@@ -977,9 +977,9 @@ const META_COLUMN = {const ROW_ACTIONS_CLASS ="mr-0.5 flex w-[calc(38px*var(--ui-space-scale,1))] shrink-0 items-center justify-end -space-x-0.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 group-focus-within:opacity-100 has-[[data-state=open]]:opacity-100 [@media(hover:none)]:opacity-100";-// Drop line for a pinned-row drag, same as the sidebar's.+// Drop line for a pinned-row drag. A border snaps to whole pixels, so every row matches.const PINNED_DROP_CUE_BASE =- "before:pointer-events-none before:absolute before:inset-x-2 before:z-10 before:h-[1.5px] before:rounded-full before:bg-primary before:content-['']";+ "before:pointer-events-none before:absolute before:inset-x-2 before:z-10 before:h-0 before:border-t-[1.5px] before:border-primary before:content-['']";const PINNED_DROP_CUE: Record<PinnedDropEdge, string> = {top: `${PINNED_DROP_CUE_BASE} before:top-0`,bottom: `${PINNED_DROP_CUE_BASE} before:bottom-0`,