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: nudge sidebar row pin and options buttons 3px right (#12563)
Michael Han64316a1d3522
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsxindex 4dcff95bbdd..e8533f08442 100644--- a/studio/frontend/src/components/app-sidebar.tsx+++ b/studio/frontend/src/components/app-sidebar.tsx@@ -2518,7 +2518,7 @@ export function AppSidebar() {const unrailedRowPadding = usesDesktopTitlebar ? "px-[calc(5px*var(--ui-space-scale,1))]" : "px-1.5";// Headers follow unrailedRowPadding: the label starts where row content does, and the- // actions end where a hovered row's "…" does. 18px / 12px normally (the class defaults), 17px / 11px here.+ // actions end where a hovered row's "…" does. 18px / 9px normally (the class defaults), 17px / 8px here.const headerInset = usesDesktopTitlebar? "sidebar-sticky-label-desktop": null;diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 0ee2c170fc5..c4a3f3c279a 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -2306,7 +2306,7 @@ html[data-chat-font] .aui-root {}.sidebar-row-action {- @apply absolute top-0 bottom-0 right-0 inline-flex cursor-pointer items-center justify-end pl-2 pr-1.5 opacity-0 pointer-events-none outline-none;+ @apply absolute top-0 bottom-0 right-0 inline-flex cursor-pointer items-center justify-end pl-2 pr-0.75 opacity-0 pointer-events-none outline-none;}@media (pointer: coarse) {/* Chat and project rows reserve touch padding (#7276); other rows stay hover-revealed to avoid clipped labels. */@@ -2362,17 +2362,17 @@ html[data-chat-font] .aui-root {.sidebar-row-action.is-disclosure-open {@apply opacity-100 pointer-events-auto;}- /* The pin sits just left of the "…" options button, and the 14px trough+ /* The pin sits just left of the "…" options button, and the 11px troughbetween their ~16px icons is the two paddings that face each other: the- pin's pr-1.5 and the options button's pl-2. Drop those, and the pin's- right edge lands exactly on the options button's left edge (30px = its- pr-1.5 plus a size-6 glyph). Closing the gap by moving the pin instead+ pin's pr-0.75 and the options button's pl-2. Drop those, and the pin's+ right edge lands exactly on the options button's left edge (27px = its+ pr-0.75 plus a size-6 glyph). Closing the gap by moving the pin insteadwould slide it under that pl-2, and the options button, later in the DOM,would take the clicks over the pin's own glyph. What is left of the pin's- own padding-right is the whole gap: the glyph boxes meet at 30px, so 2px+ own padding-right is the whole gap: the glyph boxes meet at 27px, so 2pxhere is 2px between them and 10px between the drawn icons. */.sidebar-row-action.is-unpin-action {- right: calc(1.875rem * var(--ui-space-scale, 1));+ right: calc(1.6875rem * var(--ui-space-scale, 1));padding-right: calc(0.125rem * var(--ui-space-scale, 1));/* The base pl-2 faces the options button, which is what opens the gap between the twoicons. On the pin there is nothing to its left but the title, so that padding is@@ -2408,23 +2408,23 @@ html[data-chat-font] .aui-root {}/* pl: the list's px-1.5 plus a row's pl-3 = 18px, so labels start where row content does.- pr-3, not pr-4: header actions end where a hovered row's "…" does (right-0- + pr-1.5 inside a pill the list inset by px-1.5 = 12px). The desktop+ pr 9px: header actions end where a hovered row's "…" does (right-0+ + pr-0.75 inside a pill the list inset by px-1.5 = 9px). The desktoptitlebar insets by 5px, so those headers override this in app-sidebar.tsx. */.sidebar-sticky-label {- @apply rounded-none bg-sidebar pt-0 pb-[calc(8px*var(--ui-space-scale,1))] pl-[calc(18px*var(--ui-space-scale,1))] pr-3 text-ui-14! leading-ui-17 font-medium normal-case focus-visible:ring-0! focus-visible:outline-none transition-shadow duration-150;+ @apply rounded-none bg-sidebar pt-0 pb-[calc(8px*var(--ui-space-scale,1))] pl-[calc(18px*var(--ui-space-scale,1))] pr-[calc(9px*var(--ui-space-scale,1))] text-ui-14! leading-ui-17 font-medium normal-case focus-visible:ring-0! focus-visible:outline-none transition-shadow duration-150;/* Muted section-header gray, matching Gemini's "Notebooks"/"Recents".Lightened from #5f6368 so the label reads as a header, clearlylighter than the near-black nav items. Follows the contrast slider. */color: color-mix(in oklab, #80868b, var(--contrast-panel-target, var(--contrast-target, transparent)) var(--contrast-text-mix, 0%));letter-spacing: 0;}- /* These compound selectors must beat the base label's pr-3 declaration.+ /* These compound selectors must beat the base label's pr declaration.Tailwind emits utility classes before this components block, so putting- pr-[calc(11px*var(--ui-space-scale,1))]/pr-[calc(13px*var(--ui-space-scale,1))] on the element would lose the cascade. */+ pr-[calc(8px*var(--ui-space-scale,1))] on the element would lose the cascade. */.sidebar-sticky-label.sidebar-sticky-label-desktop {padding-left: calc(17px * var(--ui-space-scale, 1));- padding-right: calc(11px * var(--ui-space-scale, 1));+ padding-right: calc(8px * var(--ui-space-scale, 1));}.sidebar-sticky-label-following {@apply pt-[calc(21px*var(--ui-space-scale,1))];diff --git a/studio/frontend/tests/on-device-dot-and-header-alignment.test.ts b/studio/frontend/tests/on-device-dot-and-header-alignment.test.tsindex e525ce2306a..f45c48f2d4f 100644--- a/studio/frontend/tests/on-device-dot-and-header-alignment.test.ts+++ b/studio/frontend/tests/on-device-dot-and-header-alignment.test.ts@@ -613,19 +613,19 @@ test("every select-model surface shares that one badge", () => {});test("list header actions end where a hovered row's action does", () => {- // A row action is `right-0 pr-1.5` inside a pill the list inset by- // unrailedRowPadding: 12px in normally, 11px under the desktop titlebar.+ // A row action is `right-0 pr-0.75` inside a pill the list inset by+ // unrailedRowPadding: 9px in normally, 8px under the desktop titlebar.assert.match(CSS,- /\.sidebar-row-action \{\n\t\t@apply absolute top-0 bottom-0 right-0[^;]*pr-1\.5/,+ /\.sidebar-row-action \{\n\t\t@apply absolute top-0 bottom-0 right-0[^;]*pr-0\.75 /,);const label = CSS.slice(CSS.indexOf(".sidebar-sticky-label {"));// pl: unrailedRowPadding + a row's pl-3, so labels start where row content does.- assert.match(label.slice(0, 500), /pl-\[18px\] pr-3 /);+ assert.match(label.slice(0, 500), /pl-\[18px\] pr-\[9px\] /);assert.ok(CSS.includes(- ".sidebar-sticky-label.sidebar-sticky-label-desktop {\n\t\tpadding-left: 17px;\n\t\tpadding-right: 11px;",+ ".sidebar-sticky-label.sidebar-sticky-label-desktop {\n\t\tpadding-left: 17px;\n\t\tpadding-right: 8px;",),);diff --git a/studio/frontend/tests/sidebar-spinner-column.test.ts b/studio/frontend/tests/sidebar-spinner-column.test.tsindex 04e8d582997..f73ecdc5b10 100644--- a/studio/frontend/tests/sidebar-spinner-column.test.ts+++ b/studio/frontend/tests/sidebar-spinner-column.test.ts@@ -71,7 +71,7 @@ test("a working Recents row clears the kebab on hover", async () => {const kebabInset =inset(grab(css, /\.sidebar-row-action \{\s*@apply ([^;]*);/, "row action"), "pr") +inset(grab(css, /\.sidebar-row-action-glyph \{\s*@apply ([^;]*);/, "action glyph"), "size");- assert.equal(kebabInset, 30);+ assert.equal(kebabInset, 27);// The row holds that room open at rest rather than on hover: a spinner sits against the same// edge the actions reveal over, so there is nothing to reclaim by waiting for the pointer.