Skip to content

Studio: 20px for the xl corner radius - #15123

Merged
shimmyshimmer merged 3 commits into
mainfrom
studio-radius-20
Oct 25, 2026
Merged

shimmyshimmer merged 3 commits into
mainfrom
studio-radius-20

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Studio: 20px for the xl corner radius

The xl tier of the radius scale (menus, popovers, textareas, boxes inside cards and dialogs) goes from 21px to 20px. Every rounded-xl and var(--radius-xl) picks it up from the one token.

  • The composer + menu, the plus menu and the message action menu drop their side gutter from 9px to 8px, so their corners stay concentric with the 12px item rows (20 = 12 + 8, as 21 = 12 + 9 was).
  • The media pages' local --radius-xl: 20px override is removed, since it is now the default.

Verification

  • npm run typecheck, npm test and npm run build.
  • Two isolated Studios (main and this branch): the composer + menu measures 21px corners with a 9px gutter on main and 20px with 8px here, with 12px item rows on both.
  • Swept every page and Settings tab, opening every dropdown on each: 73 elements rounded at 21px on main, 0 on this branch.
  • Every 20px dropdown with rows (composer +, Skills, permission level, Hub sort) has an 8px gutter on all four sides and 12px item hover corners, so 20 = 8 + 12 and the hover corners stay concentric with the menu.

Screenshots

The composer + menu on main (left) and this branch (right):

Before and after: composer + menu

The xl tier (menus, popovers, textareas, boxes inside cards and dialogs) goes from 21px to 20px. The + menus' side gutter drops from 9px to 8px so their corners stay concentric with the 12px rows, and the media pages' local 20px override is no longer needed.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 24, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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 🔄 Running since 2026-10-25T01:48:06.325498Z bc42c6b 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. Keep them coming!

Reviewed commit: ace68ce7ab

ℹ️ 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".

danielhanchen added a commit that referenced this pull request Oct 25, 2026
## Summary


`tests/studio/test_model_picker_contracts.py::test_the_run_settings_footer_does_not_reflow_under_the_pointer`
fails on main since #15104 (pinned Run settings footer). It shows up in
`Repo tests (CPU, studio)` on unrelated PRs, for example #15123:

```
E   AssertionError:  className={cn( "mt-5", // Sticky offsets start inside the scroller's 18px padding ... variant === "page" && "sticky -bottom-4.5 ...
E   assert ('variant ===' not in ' className=...
```

The test found the footer as "the third `<div` back" from the Remember
checkbox. #15104 wrapped the footer in a new sticky `<div>`, so that
count now lands on the wrapper. The wrapper's `variant === "page"`
condition only pins the footer to the panel edge. The footer itself is
still `flex flex-col gap-3.5 border-t ...`, with no `flex-wrap` and no
variant switch. So the #10216 invariant (Load must not move between
mousedown and mouseup) still holds, and only the locator broke.

## Change

- Walk the `<div>` open and close tags before the checkbox, so only the
divs that actually enclose Remember count. Sibling divs that already
closed are skipped, and `>` inside JSX braces is handled.
- The footer is the enclosing div that draws the rule (`border-t`). It
must be `flex flex-col`, must not switch on `variant`, and must not
wrap. The divs inside it, and the one wrapper just outside it (the
sticky pin), must not carry `flex-wrap` either.

## Verification

- On main: fails as above. With this change: `201 passed` for the whole
file.
- The `model-config-page.tsx` from before #15104 still passes, so the
check covers both layouts.
- Sabotage, each against the current component, each makes the test
fail:
  1. `flex-wrap` on the footer column
2. the footer's layout switched on `variant` (`flex flex-row` for the
page variant)
  3. `flex flex-wrap` on the sticky wrapper
@shimmyshimmer
shimmyshimmer merged commit bc42c6b into main Oct 25, 2026
40 of 42 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-radius-20 branch October 25, 2026 01:47
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

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