Skip to content

Studio: align Images and settings layouts - #8164

Merged
wasimysaid merged 7 commits into
mainfrom
agent/align-studio-layouts
Aug 9, 2026
Merged

wasimysaid merged 7 commits into
mainfrom
agent/align-studio-layouts

Conversation

@wasimysaid

Copy link
Copy Markdown
Collaborator

Summary

  • keep the Images model selector clear of macOS titlebar navigation when the sidebar is collapsed
  • bound Settings row titles and descriptions to one responsive text column across all tabs
  • add regression coverage for both layout contracts

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 typecheck
  • desktop reliability contracts (29 passed)
  • git diff --cached --check

@wasimysaid
wasimysaid marked this pull request as ready for review August 8, 2026 09:14
@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +2467 to +2469
!pinned && isTauri
? "pl-[var(--studio-collapsed-chat-controls-inset,0.75rem)]"
: "pl-[var(--studio-media-header-left-inset,1.5rem)]",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in c0c36a0. Images now applies pl-12 on mobile before the collapsed desktop inset; regression coverage pins the branch order.

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +2469 to +2470
: !pinned && isTauri
? "pl-[var(--studio-collapsed-chat-controls-inset,0.75rem)]"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 712457368d

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

@wasimysaid
wasimysaid merged commit 2ca477d into main Aug 9, 2026
40 of 44 checks passed
@wasimysaid
wasimysaid deleted the agent/align-studio-layouts branch August 9, 2026 12:45
danielhanchen pushed a commit that referenced this pull request Aug 9, 2026
* 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>
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