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.

972 B
Raw Blame
// 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("the More menu's side gutter sits inside its scroll viewport", () => {
  const css = readSrc("index.css");
  assert.match(css, /\.sidebar-more-menu\[data-slot\] \{\s*padding-inline: 0 !important;\s*\}/);
  assert.match(
    css,
    /\.sidebar-more-menu > \[data-slot="dropdown-menu-viewport"\] \{\s*padding-inline: var\(--spacing\);\s*\}/,
  );
});

test("New badges keep More rows at the plain row height", () => {
  const sidebar = readSrc("components/app-sidebar.tsx");
  assert.equal(
    sidebar.match(/\{badge && <Badge variant="accent" className="-my-0\.5">\{badge\}<\/Badge>\}/g)?.length,
    2,
  );
  assert.doesNotMatch(sidebar, /\{badge && <Badge variant="accent">\{badge\}<\/Badge>\}/);
});