Repository navigation
Studio: align Images and settings layouts - #8164
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9efce42ad9
ℹ️ 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".
| !pinned && isTauri | ||
| ? "pl-[var(--studio-collapsed-chat-controls-inset,0.75rem)]" | ||
| : "pl-[var(--studio-media-header-left-inset,1.5rem)]", |
There was a problem hiding this comment.
Preserve the mobile Images header inset
When an unpinned macOS Tauri window enters the <=767px responsive layout, Navbar suppresses DesktopTitlebarNavigation and renders only the mobile sidebar trigger, but this condition still applies the macOS desktop value of --studio-collapsed-chat-controls-inset (188px). That shifts the Images model selector into the centered Create/Train tabs at narrow widths; include isMobile in this branch and use the mobile clearance (as the Chat header does) before applying the collapsed-desktop inset.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in c0c36a0. Images now applies pl-12 on mobile before the collapsed desktop inset; regression coverage pins the branch order.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c0c36a0f31
ℹ️ 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".
| : !pinned && isTauri | ||
| ? "pl-[var(--studio-collapsed-chat-controls-inset,0.75rem)]" |
There was a problem hiding this comment.
Keep desktop Images controls apart at minimum width
The mobile-first branch fixes the prior <=767px report, but fresh evidence shows the adjacent desktop breakpoint remains affected: the app explicitly supports a 768px minimum desktop layout, where an unpinned native-mac window takes this branch and applies the 188px collapsed-controls inset. The centered Create/Train control is roughly 274px wide because both buttons use px-11, so its left edge is around 247px, while even the placeholder model selector extends well past that from its new 188px start; the two interactive controls therefore overlap at supported narrow desktop widths. Add a desktop-width treatment for the centered tabs or otherwise reserve non-overlapping space rather than relying only on isMobile.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 550aa90. From 768–1023px the mode switch now participates in header flex flow with compact tab padding, preventing selector overlap; lg restores absolute page centering. Regression coverage pins both breakpoints.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 550aa90e23
ℹ️ 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".
| {/* Create | Train page-mode switch, centered on the page rather than tied to the selector width. PillTabs is the app segmented control. */} | ||
| <div className="pointer-events-none absolute inset-x-0 top-[var(--studio-chat-header-padding-top,11px)] flex justify-center"> | ||
| {/* Create | Train page-mode switch: flow beside the selector at narrow desktop widths; center once all three controls fit safely. */} | ||
| <div className="pointer-events-none absolute inset-x-0 top-[var(--studio-chat-header-padding-top,11px)] flex justify-center md:static lg:absolute"> |
There was a problem hiding this comment.
Keep the mode tabs in flow at the lg breakpoint
At 1024px in an unpinned native-mac window, lg:absolute immediately removes the mode switch from the flex layout while the new 188px left inset leaves only about 187px before the centered tabs. A loaded curated model renders both its name and a non-shrinking description, so common selections such as Qwen-Image-Edit exceed that space and overlap the Create/Train controls. The earlier md:static fix only protects 768–1023px; keep the tabs in flow longer or constrain the selector before restoring absolute centering.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 628d282 with a three-column desktop grid instead of another breakpoint delay. The tabs remain centered in the middle column; selector/right controls are confined to equal side columns and shrink without overlap at lg or wider. Mobile keeps its existing layout.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 628d28269f
ℹ️ 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".
| > | ||
| <div | ||
| className={cn( | ||
| "pointer-events-auto flex min-w-0 items-center gap-2", |
There was a problem hiding this comment.
Keep blank grid space available for window dragging
At the md breakpoint, this element becomes a grid item and stretches across the entire left 1fr track, while pointer-events-auto makes its transparent space intercept pointer input. In a native macOS Tauri window, that element sits above the navbar's data-tauri-drag-region, so the otherwise blank area between the model selector and centered mode tabs can no longer drag the window. Limit pointer events to the selector itself or prevent this grid item from stretching, for example by start-aligning it.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 5227645. The stretched left grid cell is now pointer-events-none; only a tight wrapper around the selector opts into pointer-events-auto, so blank titlebar space remains draggable. Regression coverage pins the pointer scope.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5003c42544
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| onValueChange={handleModelSelect} | ||
| onEject={status?.loaded ? handleUnload : undefined} | ||
| variant="ghost" | ||
| className="!h-[34px] max-w-full" |
There was a problem hiding this comment.
Clip loaded selector text inside the side column
Fresh evidence in the current grid version is that at the supported 768px desktop width for an unpinned native-mac Tauri window, the left track has only roughly 120–135px of content space after the new 188px inset, but a loaded ModelSelector still renders its description as shrink-0 and the trigger does not hide overflow. Common loaded entries such as Text-to-image - BF16 therefore paint out of the left grid column and back over the now-md:static Create/Train tabs despite this max-w-full; please clip/shrink the selector contents or reserve enough space before relying on the grid column.
Useful? React with 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
* Studio: align Images and settings layouts * Studio: preserve mobile Images inset * Studio: prevent narrow Images header overlap * Studio: grid Images header controls * Studio: preserve Images titlebar drag space * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Studio: clip Images model selector --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Summary
Root cause
Images always used the expanded media inset, unlike Chat's pin-aware header. The shared Settings row text stack also had no maximum width, so descriptions wrapped according to each row's control width and produced uneven edges.
Impact
Collapsed macOS navigation no longer overlaps the Images selector. Settings copy now has a consistent readable measure across all 85 shared row usages while retaining responsive wrapping.
Validation
node --experimental-strip-types --test --test-reporter=dot "tests/**/*.test.ts"(939 passed)npm run typecheckgit diff --cached --check