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: tighter gap under the Chat with files header (#15523)

Michael Hanc4ac41a67d90
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 08ec12ce80c..14e9b637c30 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -5914,8 +5914,8 @@ html[data-find-bar-open] [data-sonner-toaster][data-y-position="top"] {
}
.unsloth-files-panel {
- /* pt-2: the 28px Add files pill sits in the 32px header row, so this keeps it 10px from the top edge. */
- @apply relative mb-2 flex w-full flex-col gap-5 overflow-hidden rounded-2xl px-4 pt-2 pb-4;
+ /* The 28px Add files pill sits in the 32px header row: pt-2 and gap-2 leave it 10px from the top edge and from the cards. */
+ @apply relative mb-2 flex w-full flex-col gap-2 overflow-hidden rounded-2xl px-4 pt-2 pb-4;
container: files-panel / inline-size;
font-family: var(--font-sans);
background-color: #ffffff;
diff --git a/studio/frontend/tests/rag-panel-gap.test.ts b/studio/frontend/tests/rag-panel-gap.test.ts
new file mode 100644
index 00000000000..cf8e56ed877
--- /dev/null
+++ b/studio/frontend/tests/rag-panel-gap.test.ts
@@ -0,0 +1,14 @@
+// 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 test from "node:test";
+
+import { readSrc } from "./helpers/kit.ts";
+
+test("Chat with files keeps Add files as far from the cards as from the top edge", () => {
+ assert.match(
+ readSrc("index.css"),
+ /\.unsloth-files-panel \{[^}]*@apply relative mb-2 flex w-full flex-col gap-2 overflow-hidden rounded-2xl px-4 pt-2 pb-4;/,
+ );
+});