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: 20px for the xl corner radius (#15123)

Michael Hanbc42c6bfead9
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx
index 163547f92d1..b81c51ae800 100644
--- a/studio/frontend/src/components/assistant-ui/thread.tsx
+++ b/studio/frontend/src/components/assistant-ui/thread.tsx
@@ -8917,7 +8917,7 @@ const DeleteMessageButton: FC = () => {
};
const MORE_MENU_CONTENT_CLASS =
- "aui-action-bar-more-content dropdown-surface z-50 min-w-32 max-h-(--radix-dropdown-menu-content-available-height) flex flex-col overflow-hidden rounded-xl bg-popover px-[calc(9px*var(--ui-space-scale,1))] py-2 text-popover-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)]";
+ "aui-action-bar-more-content dropdown-surface z-50 min-w-32 max-h-(--radix-dropdown-menu-content-available-height) flex flex-col overflow-hidden rounded-xl bg-popover px-[calc(8px*var(--ui-space-scale,1))] py-2 text-popover-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)]";
// Loaded on first use: the dialog is not part of the first screen.
const LazyRewindDialog = lazy(() =>
diff --git a/studio/frontend/src/features/hub/hub.css b/studio/frontend/src/features/hub/hub.css
index 01b709ee329..0d75d18e39f 100644
--- a/studio/frontend/src/features/hub/hub.css
+++ b/studio/frontend/src/features/hub/hub.css
@@ -709,10 +709,10 @@
background-color: color-mix(in srgb, var(--accent) 60%, var(--popover)) !important;
}
- /* The composer + menu's shape: 12px rows on a 9px gutter keep the 21px corners concentric. */
+ /* 12px rows + 8px gutter = the 20px corner. */
.hub-composer-menu[data-slot] {
border-radius: var(--radius-xl) !important;
- padding: calc(0.5rem * var(--ui-space-scale, 1)) calc(9px * var(--ui-space-scale, 1)) !important;
+ padding: calc(0.5rem * var(--ui-space-scale, 1)) calc(8px * var(--ui-space-scale, 1)) !important;
}
html.dark .hub-composer-menu {
background-color: var(--card) !important;
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index c1f02f6cd3c..54ce8e254dd 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -2014,18 +2014,18 @@ html[data-chat-font] .aui-root {
@theme {
/* One radius scale for the whole app, fixed so no theme or region shifts it. Tiers nest
concentrically (outer = inner + inset), as the composer (28px around an 18px send circle
- at a 10px inset) and the + menu (21px around 12px rows at a 9px gutter) do. Anything one
+ at a 10px inset) and the + menu (20px around 12px rows at an 8px gutter) do. Anything one
line tall is rounded-full.
sm 8px tiny tiles and swatches
md 12px rows in menus and lists, tiles inside a card (bare `rounded` too)
lg 16px compact multi-line boxes: code blocks, thumbnails
- xl 21px menus, popovers, textareas, boxes inside a card or dialog
+ xl 20px menus, popovers, textareas, boxes inside a card or dialog
2xl 24px cards and panels
3xl 28px composer, dialogs, sheets, large floating surfaces */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
- --radius-xl: 21px;
+ --radius-xl: 20px;
--radius-2xl: 24px;
--radius-3xl: 28px;
--radius-4xl: 32px;
@@ -3127,11 +3127,6 @@ html[data-chat-font] .aui-root {
border-radius: calc(var(--radius-md) + 10px) !important;
}
- /* Audio, Images and Video: 20px textareas and drop zones. */
- [data-media-rail-root] {
- --radius-xl: 20px;
- }
-
html.dark .unsloth-model-selector-menu .btn-fill {
background-color: rgb(255 255 255 / calc(0.06 * var(--contrast-wash-gain, 1)));
}
@@ -3864,15 +3859,12 @@ html[data-chat-font] .aui-root {
/* Soft elevation; [data-slot] outranks the component ring-1, dropping the border. */
.unsloth-plus-menu[data-slot] {
- /* Concentric with the item hover boxes: container radius =
- item radius (12px) + side gutter (9px), so the curves run parallel. */
+ /* 12px item corners + 8px gutter = the 20px corner. */
border-radius: var(--radius-xl) !important;
padding-top: calc(0.5rem * var(--ui-space-scale, 1));
padding-bottom: calc(0.5rem * var(--ui-space-scale, 1));
- /* Side gutter ~matches the 0.5rem top/bottom padding so the hover box
- sits evenly inset on all four sides. */
- padding-left: calc(9px * var(--ui-space-scale, 1));
- padding-right: calc(9px * var(--ui-space-scale, 1));
+ padding-left: calc(8px * var(--ui-space-scale, 1));
+ padding-right: calc(8px * var(--ui-space-scale, 1));
box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.16);
}