Repository navigation
Studio: control heights, composer fades, API page layout, settings polish - #15232
Conversation
Filled buttons now take their height from the label line plus padding (34.75px at the default text size, scaling with UI font size), while inputs, select triggers and icon buttons stayed at fixed 32px or 36px, so a Save or Download button sat taller than the field or dropdown beside it. Add h-control / size-control with the filled button's height and use them for the default Input, InputGroup, SelectTrigger and icon Button, and drop the h-8 / h-9 / size=sm overrides on controls that share a row with a filled button.
…s polish - API page: Load model and Reload move to the top-left bar, styled as Chat's model selector; Eject stays in the Base URL card. - Composer: text cut off at the top or bottom of the scrolled textarea fades out, and the scrollbar sits 4px from the composer edge. - Settings: the Danger zone divider sits above its heading, and the card icons (Remote access, LAN, Keyless API, MCP, ...) are borderless filled discs in both themes.
- Input, InputGroup, SelectTrigger and icon Button defaults are back to main. h-control is applied only where a field or picker sits beside a filled button (Settings rows, accounts and API key forms, Projects, Tasks, Hub folders), so Images, Video and other pages are unchanged. - Composer: the last line of a scrolling draft gets a faint fade; with more lines below the fade is stronger. - Attachments: tiles are 14px round instead of 16px, and the remove X has a ring in the page color so it stays visible over any thumbnail.
…e menu - The last line's fade covers only its lower edge, and typing at the end of a long draft no longer counts as lines below (the caret scrolls the line into view but leaves the padding hidden). - Sidebar More menu: fully rounded hover rows, and a corner of half a row plus the gutter so the pill nests in it.
- Attachment remove X: white in light mode and black in dark mode, with a 1px outline, on composer tiles and the thread documents bar. - Sidebar New badges are green again. They used the secondary fill, which the neutral grey tint change (#14938) turned grey.
…ter cut-line fade - Badge gains an accent variant (the API page's green chip); the sidebar New pills use it. - The API page's model picker drops its smaller sans label, so it uses Chat's Hellix 15px label at the same height. - With lines below, the composer's bottom fade is 1rem instead of 1.75rem, so the cut-off line fades only at its lower half.
…ar 8px from the edge On the welcome screen the expanded editor now grows by exactly the top padding it gives up, on the same 280ms curve, so the composer's bottom edge stays put and the box grows upward to the top of the page. Before, the box jumped up and grew only to a viewport clamp that, on a short window, barely exceeded a long draft's compact height (#10863).
…nd empty-state icons - API page: Reload moves from the header picker to the Base URL card, beside Eject, and reloads every served model (kept ones first, the primary last so it stays primary); with nothing served it reloads the last local load as before. Each served model row gets its own Reload. The reload logic moves into use-api-model-reload.ts. - The lucide trash icons (API saved load settings, prompt storage, OpenAI code exec, research panel, generation presets) become the Hugeicons Delete02Icon used everywhere else. - The API page's empty-state icons are borderless discs.
- Dropdown rows (item, sub-trigger, checkbox, radio) get min-h-menu-row, their one-line height rounded up to a whole pixel, and a label pads itself to a whole pixel. A 34.75px row left the last hover pill and the menu's bottom edge between pixels, so the bottom gap looked larger. - API page: each model row, including a lone model, carries its own Eject beside Reload, Run settings and the code example.
- Run settings, Reload and Eject sit at the right end of each model row; the code example stays beside the model name. - Saved load settings: the forget (trash) button is red at rest.
Ordered lists indented 1.25rem with outside markers, so "10." (and "1." at a larger chat font) hung left of the column, past the composer's edge. The indent is now 1.6em, 2.2em from ten items or a start of 10 and up, and 2.8em from a hundred.
… all
- One served model uses the same list as several ("1 model answering
requests", green dot); none reads "No models loaded".
- The code example sits right after each model name; the copy-on-hover
button is gone from model rows.
- The card's buttons read Reload all and Eject all.
It floats over the message text. Its edge came from the outline Button's border, which #14919 replaced with a borderless fill, so in both themes it blended into the text behind it. A 0.5px ring (dark at 15% in light mode, white at 20% in dark mode) outlines it again.
…e model - Each model row's Context (the configured window) becomes In context: the latest request's prompt plus reply against that request's window, with Chat's usage ring. Only requests since the model's latest load count; the primary shows 0 against the live window until one arrives. - With one model served the card reads Reload and Eject; with several, Reload all and Eject all.
|
@codex security review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Thanks, all three are addressed:
|
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…es in the composer
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
main (unslothai#15232) widened the ordered-list indent to 2.2em past 9 items and 2.8em past 99 with padding-left, so a right-to-left list kept 1.6em on the side its numbers sit and took the extra width on the other side. Use padding-inline-start, as the base list rules do, and have the test check every list rule.
…aded row menu (#15375) ## Studio: prompt edit box, menu heading chips, hub Run, files panel, loaded row menu A batch of small Studio UI fixes. ### Editing a prompt - The edit box spans the composer width and keeps the text on the prompt's line (same top gap, size, weight and tracking as the prompt bubble), so nothing jumps on Edit. - It is at least two lines tall, with 20px corners matching the bubble and slightly more padding. - Cancel and Send are the standard dialog pair (outline Cancel, dark Send, default size). Send was a near-invisible fill on the box before. ### Menu heading chips back at the right edge #15232 added a whole-pixel spacer as `[data-slot="dropdown-menu-label"]::after`. In a `flex justify-between` label that pseudo-element is a third flex item, so the trailing chip landed in the middle. The rule now skips flex and grid labels. Affected and fixed: - Permissions menu: the "Sandbox High" chip - Sandbox level submenu: "Learn more" - Chat with files menu: the "Retrieve from" embedding model chip Every other menu label is block-level and keeps the spacer. ### Model hub Run - The filled play triangle Library's play buttons use, instead of the outline one. - No divider line beside Run on any card type (GGUF, safetensors, MLX precision, local on-device); cards without Run keep it. - A 15px label, 2px more padding all round, and the label and triangle centred in the button. ### Chat with files panel - Add files is text only. - 6px less top and 8px less bottom padding when open. - A full pill when collapsed to its header. ### Loaded model row menu The row's menu hides when it has no items. A model loaded by path, such as a cached download's `.gguf`, offered neither Pin nor Reveal, so with one model loaded the menu vanished and only the settings gear showed. Path loads now get Reveal (the file itself), and a cached download also pins as its repo. ### Verification - `npm run typecheck`, `npm test` (14059 pass), `npm run build`. `biome:check` errors are only in files this PR does not touch (`smoke-*.tsx`, `public/theme-boot.js`, `scripts/refresh-model-catalog-snapshot.mjs`). - New tests: `menu-label-spacer.test.ts` (fails on main's CSS), `files-panel-shape.test.ts`, `hub-run-play-icon.test.ts`, plus additions to `edit-composer-attachments.test.ts` and `loaded-gguf-quant-marker.test.ts`. - Checked live in a local Studio with Playwright, in light and dark: edit box position and size, the three menu chips' right edges, Run centring (13.27px over and 13.28px under the label, 13.03 / 13.05px around the triangle), the files panel open and collapsed, and SmolLM2 loaded by repo and by snapshot path (the path load now shows the menu with Pin and Reveal in Finder). Not covered here: Safari / WebKit layout, and the collapsed files panel with files attached (it keeps rounded corners, so the file chips are not clipped).
## What changed Restores the reload icons that #15232 swapped to Hugeicons `Refresh04Icon`: - In-app browser toolbar: Reload and Run again go back to lucide `RotateCw` at 0.94 scale. - Browser tab menu Reload, Images Reapply and Video Reapply go back to `Refresh01Icon`. - The API page Reload buttons were added with `Refresh04Icon` in #15232, so they keep it. Found with `git blame` on the browser Reload line (`browser-panel.tsx`), then confirmed by checking every commit touching that file from the one before #15232 onward: the parent still draws `RotateCw` and every commit from #15232 on draws `Refresh04Icon`. `tests/media-header-links.test.ts` matched the Reapply icon by name; it now names `Refresh01Icon` and still checks the icon spacing. Split out of #15640, where this first landed. ## Screenshots #15232 on the left, restored on the right. Browser toolbar:  Tab menu:  ## How it was verified - `npm run typecheck`, `npm run build`, `npm test`. - Browser toolbar and tab menu checked before and after in an isolated Studio on macOS (Apple Silicon). ## Not tested here - Images and Video Reapply and the API page need a loaded model, which this machine cannot load.
Studio: control heights, composer fades, API page layout, settings polish
A round of UI fixes on top of #15122 (one padding for every main button).
Fields and pickers line up with buttons
[data-settings-dialog], so other pages keep their pickers; action menus (Export, Delete all) keep the button look.h-control/size-controlutilities give a field or picker the filled Button's height (label line + 7px padding + 1px border) at every UI font size.Input,SelectTriggerand iconButtondefaults are unchanged, so Images, Video and other pages look as before.min-h-menu-row), so the last hover pill and the menu's bottom edge no longer sit between pixels. A label pads itself the same way.Composer
round()keep the unrounded size.Chat messages
API page
use-api-model-reload.ts. A row reloads by its checkpoint (not a kept slot's public alias), an MLX precision folder reloads as a model rather than a GGUF quant, and an AMD NPU model goes through the NPU loader, as the picker does.pinOnClick, opt-in, so Chat's chip is unchanged). Only requests since the model's latest load count, and requests logged as<id>:<quant>match their model.hoverClassName, opt-in, so Chat's chip is unchanged).display: contents, so the whole row, gaps included, is the hover target.Hub
Audio
Mic01Icon.Settings and sidebar
Badgevariantaccent); Studio: neutral grey tints instead of green ones #14938 had turned them grey through the shared secondary fill.Delete02Iconused everywhere else.Refresh04Icon, re-exported asReloadIconfromlib/reload-icon.ts; the package's ownReloadIconis an older shape with bent arc ends): Images and Video Reapply (reloads the model), the in-app browser's Reload and Run again, and the browser tab menu's Reload (was lucideRotateCw/Refresh01Icon). Refresh, retry, regenerate and update keepRefresh01Icon.ModelMemorySection variant="api"). A System settings link beside the heading opens System settings scrolled to Model memory for the rest (label in every locale).UI parity
affects UI#label for it.BUDGET.playwright_queue_localization.pynow asserts that offset instead of exact centring.Verification
npm run typecheck,npm test(13,947 pass, 0 fail),npm run i18n:check:strict,npm run build.Not covered here