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: make carried rows a faintly frosted, darker copy (#12562)
Michael Han3ebc7bf8e04e
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex c4a3f3c279a..785f56e819e 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -4766,14 +4766,29 @@ html[data-chat-font] .aui-root {will-change: transform;}-/* A carried row: a translucent shade off its list. */-:is(.sidebar-row-ghost, .model-picker-row-ghost) {- background: color-mix(in oklab, color-mix(in oklab, var(--row-ghost-surface), var(--foreground) 5%) 85%, transparent);- -webkit-backdrop-filter: blur(8px);- backdrop-filter: blur(8px);+.sidebar-section-ghost {+ --row-ghost-surface: var(--sidebar);+ display: flex;+ align-items: center;+ border-radius: 10px;+ will-change: transform;+}++/* A carried row or header: faintly frosted, a shade darker than its list, on a hairline. */+:is(.sidebar-row-ghost, .sidebar-section-ghost, .model-picker-row-ghost) {+ background: color-mix(in oklab, color-mix(in oklab, var(--row-ghost-surface), black 4%) 62%, transparent);+ -webkit-backdrop-filter: blur(0.5px) saturate(1.05);+ backdrop-filter: blur(0.5px) saturate(1.05);+ box-shadow:+ 0 0 0 1px rgb(0 0 0 / 0.06),+ 0 4px 12px -4px rgb(0 0 0 / 0.12);+}++.dark :is(.sidebar-row-ghost, .sidebar-section-ghost, .model-picker-row-ghost) {+ background: color-mix(in oklab, color-mix(in oklab, var(--row-ghost-surface), black 22%) 62%, transparent);box-shadow:- 0 0 0 1px color-mix(in oklab, var(--foreground) 7%, transparent),- 0 4px 14px -6px rgb(0 0 0 / 0.16);+ 0 0 0 1px rgb(255 255 255 / 0.045),+ 0 6px 16px -6px rgb(0 0 0 / 0.5);}.sidebar-section-ghost > *,diff --git a/studio/frontend/tests/model-picker-pinned-drag-preview.test.ts b/studio/frontend/tests/model-picker-pinned-drag-preview.test.tsindex 8161a70804c..1a972e1370c 100644--- a/studio/frontend/tests/model-picker-pinned-drag-preview.test.ts+++ b/studio/frontend/tests/model-picker-pinned-drag-preview.test.ts@@ -37,12 +37,20 @@ test("a carried Pinned row lifts a copy that follows the pointer", () => {assert.match(CSS, /\.model-picker-row-ghost \* \{\n\tpointer-events: none;/);});-test("both copies are a translucent shade off the list they came from", () => {- const look = /:is\(\.sidebar-row-ghost, \.model-picker-row-ghost\) \{([^}]*)\}/.exec(CSS);- assert.ok(look, "shared ghost look");- assert.match(look[1], /background: color-mix\(in oklab, color-mix\(in oklab, var\(--row-ghost-surface\), var\(--foreground\) 5%\) 85%, transparent\);/);- assert.match(look[1], /backdrop-filter: blur\(8px\);/);+test("every copy is a faintly frosted shade darker than the list it came from", () => {+ const ghosts = String.raw`:is\(\.sidebar-row-ghost, \.sidebar-section-ghost, \.model-picker-row-ghost\)`;+ const light = new RegExp(String.raw`\n${ghosts} \{([^}]*)\}`).exec(CSS);+ const dark = new RegExp(String.raw`\.dark ${ghosts} \{([^}]*)\}`).exec(CSS);+ assert.ok(light, "shared ghost look");+ assert.ok(dark, "shared ghost look in dark mode");+ assert.match(light[1], /background: color-mix\(in oklab, color-mix\(in oklab, var\(--row-ghost-surface\), black 4%\) 62%, transparent\);/);+ assert.match(dark[1], /background: color-mix\(in oklab, color-mix\(in oklab, var\(--row-ghost-surface\), black 22%\) 62%, transparent\);/);+ // Faint blur, so what is underneath stays readable.+ assert.match(light[1], /\bbackdrop-filter: blur\(0\.5px\) saturate\(1\.05\);/);+ assert.match(light[1], /0 0 0 1px rgb\(0 0 0 \/ 0\.06\)/);+ assert.match(dark[1], /0 0 0 1px rgb\(255 255 255 \/ 0\.045\)/);assert.match(CSS, /\.sidebar-row-ghost \{\n\t--row-ghost-surface: var\(--sidebar\);/);+ assert.match(CSS, /\.sidebar-section-ghost \{\n\t--row-ghost-surface: var\(--sidebar\);/);assert.match(CSS, /\.model-picker-row-ghost \{\n\t--row-ghost-surface: var\(--popover\);/);});