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: Skills dialog scrolls on its right edge (#12634)

Michael Hanb876129afba3
diff --git a/studio/frontend/src/features/chat/components/chat-skills-dialog.tsx b/studio/frontend/src/features/chat/components/chat-skills-dialog.tsx
index 00d509f02a1..a779bac5f5e 100644
--- a/studio/frontend/src/features/chat/components/chat-skills-dialog.tsx
+++ b/studio/frontend/src/features/chat/components/chat-skills-dialog.tsx
@@ -399,7 +399,8 @@ export function ChatSkillsDialog({
</Button>
</div>
- <div className="hover-scrollbar min-h-0 max-h-[min(58dvh,520px)] space-y-5 overflow-y-auto pr-1 max-sm:flex-1 max-sm:max-h-none">
+ {/* -mr-7 pr-7 spans the dialog's right padding, so the scrollbar sits on its edge. */}
+ <div className="hover-scrollbar min-h-0 max-h-[min(58dvh,520px)] -mr-7 space-y-5 overflow-y-auto pr-7 max-sm:flex-1 max-sm:max-h-none">
{error ? (
<div className="rounded-xl border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive">
{error}
@@ -481,7 +482,7 @@ export function ChatSkillsDialog({
</DialogDescription>
</DialogHeader>
- <div className="hover-scrollbar min-h-0 max-h-[min(62dvh,640px)] overflow-y-auto pr-1 max-sm:flex-1 max-sm:max-h-none">
+ <div className="hover-scrollbar min-h-0 max-h-[min(62dvh,640px)] -mr-7 overflow-y-auto pr-7 max-sm:flex-1 max-sm:max-h-none">
{view.kind === "new" ? (
<Editor
formId="skill-new-form"
diff --git a/studio/frontend/tests/skills-dialog-edge-scrollbar.test.ts b/studio/frontend/tests/skills-dialog-edge-scrollbar.test.ts
new file mode 100644
index 00000000000..d9bc5432043
--- /dev/null
+++ b/studio/frontend/tests/skills-dialog-edge-scrollbar.test.ts
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import assert from "node:assert/strict";
+import { readFile } from "node:fs/promises";
+import test from "node:test";
+
+const DIALOG = await readFile(
+ new URL("../src/features/chat/components/chat-skills-dialog.tsx", import.meta.url),
+ "utf8",
+);
+const DIALOG_UI = await readFile(new URL("../src/components/ui/dialog.tsx", import.meta.url), "utf8");
+
+test("the Skills list and editor scroll on the dialog's right edge", () => {
+ // The offset only lands on the edge while it matches DialogContent's own padding.
+ assert.match(DIALOG_UI, /rounded-4xl px-7 pt-8 pb-7/);
+ const scrollers = [...DIALOG.matchAll(/className="hover-scrollbar [^"]*"/g)].map((m) => m[0]);
+ assert.equal(scrollers.length, 2);
+ for (const scroller of scrollers) {
+ assert.match(scroller, / -mr-7 /);
+ assert.match(scroller, / pr-7 /);
+ assert.doesNotMatch(scroller, / pr-1 /);
+ }
+});