Skip to content

Studio: filled borderless buttons - #14924

Merged
shimmyshimmer merged 4 commits into
studio-radius-scalefrom
studio-filled-buttons
Oct 23, 2026
Merged

shimmyshimmer merged 4 commits into
studio-radius-scalefrom
studio-filled-buttons

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Summary

Clickable buttons no longer draw an outline. Button variant="outline" and the hand-rolled bordered buttons become a neutral fill (6% wash, 9% on hover; white in dark mode, as dark already was), and red outlined buttons become red fills. Value pickers keep their border: a new Button variant="picker" gives menu triggers that show a value (Tool permissions, the Data tab export format, the Library filters) the select trigger's look, as do SelectTrigger, text fields, selectable option cards and drop zones.

Stacked on #14919 (the radius scale and primitives). Split out of #14895.

Verification

  • npm run typecheck, npm test and npm run build pass on this branch.
  • Checked in an isolated Studio in light and dark: Settings (General, Data, Voice, Agents), run settings, the library selection bar, error retry buttons.

Not tested here

GPU-only screens and surfaces that need a loaded model.

Clickable buttons no longer draw an outline: Button variant="outline" and the hand-rolled bordered buttons are a neutral fill (6% wash, 9% on hover, white in dark mode), and red outlined buttons become red fills. Menu triggers that show a value use a new Button "picker" variant with the select trigger's bordered look, so fields and value pickers keep their border; the run settings Tool permissions box keeps its panel fill.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T06:57:43.519269Z 9a8dd29 Manual request
🔒 Security Review ✅ Completed 2026-10-23T05:32:26.338922Z 4add783 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 4add7835d7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4add7835d7

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 381315764b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 9a8dd2955f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

Before / after

Settings > Data, light mode. BEFORE is studio-radius-scale (this PR's base), AFTER is this branch. Clickable buttons drop the border and take a filled background.

Data tab buttons: bordered before, filled after

The fill is the segmented toggles' track colour, so a filled button and a toggle read as the same grey in light and dark (Open Library next to the Queue / Steer toggle in Settings > Chat):

Filled button and toggle track share one grey in light and dark

The model picker is excluded and keeps its bordered outline buttons.

@shimmyshimmer
shimmyshimmer merged commit 761dc3f into studio-radius-scale Oct 23, 2026
4 of 41 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-filled-buttons branch October 23, 2026 07:56
shimmyshimmer added a commit that referenced this pull request Oct 23, 2026
)

## Summary

Studio's corners follow one fixed radius scale, and the shared
primitives and global styles move onto it. This is the base of a short
stack: the per-area sweeps, filled buttons and one-line command boxes
build on it (split out of #14895 so each piece can be reviewed on its
own).

Before, the Tailwind radius scale was a set of offsets from `--radius`,
and five regions overrode that variable (chat search, model selector,
API page, Settings, Skills), so the same class gave different corners in
different places. The scale is now fixed px tiers, nested so an outer
corner equals the inner corner plus its inset (the composer: 28px around
an 18px send circle at a 10px inset; the `+` menu: 21px around 12px rows
at a 9px gutter):

| Class | Radius | Used for |
|---|---|---|
| `rounded-full` | pill | anything one line tall: buttons, inputs,
select triggers, chips, badges, tabs, nav rows, toggles |
| `rounded-sm` | 8px | tiny tiles and swatches |
| `rounded-md` (and bare `rounded`) | 12px | rows in menus and lists,
tiles inside a card |
| `rounded-lg` | 16px | menus (12px rows + 4px gutter), code blocks,
thumbnails, compact boxes with 8-12px padding |
| `rounded-xl` | 21px | popovers, textareas, larger panels inside a card
or dialog |
| `rounded-2xl` | 24px | cards and panels |
| `rounded-3xl` | 28px | composer, dialogs, sheets, large floating
surfaces |

In this PR:

- The scale above, defined once in `@theme`; the `--radius` overrides
are gone.
- Primitives: one-line controls (badge, tabs, toggles, menubar,
progress, kbd) are pills; dialogs, alert dialogs and the command palette
are 28px; cards 24px; alerts and empty states on the compact and card
tiers.
- Menus: dropdowns, selects, context menus and the menubar use a 4px
gutter, 12px rows and a 16px corner so the hover nests in the corner.
The sidebar row menu (8px gutter) is 20px, the account menu (10px) 22px,
the composer `+` menus keep 21px around their 9px gutter.
- Global styles: composer 28px, code blocks 16px, elevated cards one
24px radius at every width, sidebar drag ghosts as pills, toasts 16px.
- Tooltips keep their existing radii (11px compact, 16px rich).

Pages that are not swept yet still render on the new scale, so some
corners move slightly until their area PR lands.

## Verification

- `npm run typecheck`, `npm test` and `npm run build` pass on this
branch alone.
- Tests that pinned old radius classes on primitives assert the new
tiers.
- Checked in an isolated Studio (light and dark) together with the rest
of the stack; a rendered-DOM audit across chat, every Settings tab, Hub,
Library, Images, Video, Audio, Studio, Data Recipes, Export, API monitor
and Projects checks one-line boxes are pills, short boxes are not
near-capsules and hover rows nest in their container.

## Not tested here

GPU-only screens and surfaces that need a loaded model; the Desktop
(Tauri/WebKit) shell. `corner-shape: squircle` only renders in Chromium.

## Stack

Split out of #14895. Based on this PR (review this first):

- #14920 radius scale in chat, browser and shared components
- #14921 radius scale in Settings, Profile and Library
- #14922 radius scale in the Hub, model picker, Images and Video
- #14923 radius scale in Recipe Studio, Studio, Audio and the remaining
pages
- #14924 filled borderless buttons
- #14925 one-line command and URL boxes are pills

Independent, based on `main`: #14926 run settings controls, sliders and
thumbs; #14927 composer `+` hover label.

The sibling PRs touch disjoint lines, so they merge cleanly in any order
once this lands. Merged together they are identical to #14895.


### Stacked PRs folded in

The stacked PRs were squash-merged into this branch, so merging this PR
lands all of them:
#14920 (chat, browser, shared components), #14921 (Settings, Profile,
Library), #14922 (Hub, model picker, Images, Video), #14923 (Recipe
Studio, Studio, Audio, remaining pages), #14924 (filled borderless
buttons), #14925 (one-line command and URL boxes as pills). Each was
reviewed and staged on its own PR.
shimmyshimmer added a commit that referenced this pull request Oct 25, 2026
…15104)

## Studio: pinned Run settings footer, model picker on the radius scale

With Advanced settings open, Run settings runs several screens tall and
the Load / Reload button sat at the very end. The footer (Remember for
this model, Load or Reload, Reset, Share) is now pinned to the bottom of
the picker panel while the settings scroll behind it.

- **Pinned footer:** `sticky` inside the picker's scroller, on the
panel's own fill (`bg-popover`, `bg-sidebar` in dark). Sticky offsets
are measured inside the scroller's 16px bottom padding, so the footer
uses `-bottom-4` with matching negative margins and sits flush on the
panel edge; at `bottom-0` the settings showed through a strip under the
buttons. Only the picker popover; the sidebar variant is unchanged.
- **Shorter save status:** "Not remembered for this model" and "Not
saved yet" repeated what the Remember checkbox already says, so they are
gone. The statuses that add something ("Saved for this model", "Unsaved
changes", "Saved settings will be forgotten", "Using default settings")
now sit on the checkbox's row, so a status appearing or clearing never
moves the buttons.
- **Radius scale:** the model picker kept its own radius scale after
#14919 (`rounded-lg` 20px, `rounded-xl` 24px, a 20px surface). That
override is removed, so the picker and Run settings use the shared tiers
(12 / 16 / 21 / 24px) and the panel takes the popover's 21px. Extra
Arguments goes from 24px to 21px.
- **Scrollbar and width:** the Run settings scrollbar sits on the
panel's right edge with less padding before it, and Run settings keeps
the picker list's width (549px in both views) instead of widening.
- **Footer buttons:** Load / Reload, Save or Forget settings and Reset
use the Preset section's Save / Delete size (32px tall, `size="sm"`),
left-aligned. Share is an icon-only button (Hugeicons `share-01`, with a
"Share" aria-label and tooltip) in a filled 32px circle, the same fill
and hover as Reset beside it. Its icon is 16px at the default UI size
(`calc(1rem * var(--ui-space-scale))`, since popovers draw `size-4`
icons at the 15px text-scaled icon size). The space under the buttons
(18px; their filled boxes already carry space under the label, so an
equal number reads as more at the bottom) matches the space above
Remember for this model, measured to the label's text rather than its
checkbox or line box.
- **Insets:** Run settings content (labels, dividers, controls, the
pinned footer) sits 28px from the panel's left and right edges, where
the picker list's section labels, model names and dividers sit, 18px
from the top and bottom; it was 16px, the inset of the picker's search
box, which put the settings visibly closer to the edge than anything in
the list. On the right that is 20px plus the scrollbar: a classic bar's
8px, or an overlay bar's measured strip (`--overlay-scrollbar-gutter`,
12 to 14px on macOS) capped at 8px, so an overlay scrollbar no longer
pushes the content further in. The back chevron's stroke starts on the
same 28px edge (`-ml-2.75` cancels its button's 6px inset and the
glyph's own ~5px).
- **Light mode buttons:** the picker kept a light-mode exception from
before #14924 that gave its outline buttons a border and a white fill,
so Reset (and Save or Forget settings) were the only bordered buttons of
their kind. It is removed; they are the standard borderless grey fill,
like the Preset section's Save and Delete. The dark-mode fill is
unchanged.
- **Eject model:** it was `rounded-md`, which was a pill only on the
picker's old scale (18px); on the shared scale it read as a 12px
rectangle, so it is now `rounded-full` like other one-line controls.
- The startup bundle budget is raised by this PR's measured growth (25 B
raw / 49 B transfer, the footer's classes in the eager model picker);
the numbers are in `scripts/check-bundle-budget.ts`.

### Screenshots

Run settings with Advanced settings on, scrolled partway: the footer
stays on the panel edge, nothing shows beneath it, Extra Arguments at
21px

<img
src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15104/run_settings_mid_dark-768cb8869644.png"
width="420">

The picker list on the shared scale (light)

<img
src="https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15104/picker_light-32dd6856e152.png"
width="520">

### Verification
- After the follow-ups and a merge of `main`: `npm run typecheck`, `npm
test` (13859 pass), `npm run build`, `npm run bundle:check`; Run
settings text and dividers measured 28px from the panel's left and right
(the picker list's section labels and dividers also 28px) 18px from the
top and bottom with Chromium's own 14px overlay gutter, the chevron
stroke at 28.5px, and the pinned footer flush with the panel edge at the
top, middle and end of a scrolled Advanced view and from the left at the
content column; 18.3px from the rule to the top of the Remember text and
18px under the buttons, every footer button 32px tall
- `npm run typecheck`, `npm test` (13853 pass; the save-status test now
also requires the two removed lines stay gone), `npm run build`, `npm
run bundle:check`, `npm run i18n:check:strict`
- Isolated Studio on macOS (CPU) with a GGUF loaded, Run settings opened
from the picker with Advanced settings on, at an 800px and a 700px tall
window: the footer's bottom edge measured 0px from the panel's bottom
edge, at the top and after scrolling 646 to 701px; panel and Extra
Arguments radius measured 21px; `rounded-md/lg/xl/2xl` inside the picker
measured 12 / 16 / 21 / 24px

### Not tested here
- Windows and Linux rendering (staging CI)
- The Desktop (Tauri/WebKit) shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant