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: show the chat background in conversations on Windows at 100% scaling (#16702)

Leo Borcherding157305f6596d
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 026e9c8aeb3..3898b6c5fce 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -5191,6 +5191,9 @@ html.force-reduced-motion .sidebar-section-drop-line {
scrollbar-gutter: auto;
overflow-y: scroll;
border-inline-start: var(--thread-scrollbar-gutter) solid transparent;
+ }
+ /* A chat background reads through the thread, so it trades compositor scrolling for the image. */
+ :root.client-windows[data-low-device-scale]:not([data-chat-wallpaper-ready]) .aui-thread-viewport:not(.chat-full-view-dock *) {
background-color: var(--background);
}
}
diff --git a/studio/frontend/tests/desktop-webkit-paths.test.ts b/studio/frontend/tests/desktop-webkit-paths.test.ts
index 314f7373cce..8fcc23855bd 100644
--- a/studio/frontend/tests/desktop-webkit-paths.test.ts
+++ b/studio/frontend/tests/desktop-webkit-paths.test.ts
@@ -46,12 +46,12 @@ test("the Windows thread gutter follows the native thin bar, which neither brows
assert.equal(readSrc("features/settings/lib/interface-scale-runtime.ts").includes("--studio-interface-zoom"), false);
});
-test("below 1.5x device scale the Windows thread scrolls on the compositor and keeps LCD text", () => {
+test("below 1.5x device scale the Windows thread scrolls on the compositor and keeps LCD text unless a chat background shows through it", () => {
const css = readSrc("index.css");
assert.match(
css,
- /@media screen and \(forced-colors: none\) \{\s*:root\.client-windows\[data-low-device-scale\] \.aui-thread-viewport:not\(\.chat-full-view-dock \*\) \{\s*scrollbar-gutter: auto;\s*overflow-y: scroll;\s*border-inline-start: var\(--thread-scrollbar-gutter\) solid transparent;\s*background-color: var\(--background\);\s*\}\s*\}/,
- "Chromium composites a scroller below 1.5x only when its scrolling background is opaque, which it paints that way only with an auto gutter; the always-on bar and the start border keep the stable both-edges geometry. A contrast theme paints that transparent border in its text colour, so forced colours keep the stable gutter",
+ /@media screen and \(forced-colors: none\) \{\s*:root\.client-windows\[data-low-device-scale\] \.aui-thread-viewport:not\(\.chat-full-view-dock \*\) \{\s*scrollbar-gutter: auto;\s*overflow-y: scroll;\s*border-inline-start: var\(--thread-scrollbar-gutter\) solid transparent;\s*\}\s*\/\*[^*]*\*\/\s*:root\.client-windows\[data-low-device-scale\]:not\(\[data-chat-wallpaper-ready\]\) \.aui-thread-viewport:not\(\.chat-full-view-dock \*\) \{\s*background-color: var\(--background\);\s*\}\s*\}/,
+ "Chromium composites a scroller below 1.5x only when its scrolling background is opaque, which it paints that way only with an auto gutter; the always-on bar and the start border keep the stable both-edges geometry. A contrast theme paints that transparent border in its text colour, so forced colours keep the stable gutter. A chat background or glass backdrop needs a see-through thread, so it drops the fill",
);
const supports = css.lastIndexOf("@supports selector(::-webkit-scrollbar)", css.indexOf("[data-low-device-scale]"));
assert.ok(supports > css.indexOf(".aui-thread-viewport {\n\t/* Reserve scrollbar space"), "the Chromium-only scrollbar block holds it, so Firefox keeps its own scrolling");