Skip to content

Fix Settings layout overflow - #7167

Merged
shimmyshimmer merged 4 commits into
mainfrom
agent/fix-settings-dialog-overflow
Jul 16, 2026
Merged

shimmyshimmer merged 4 commits into
mainfrom
agent/fix-settings-dialog-overflow

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Allow the Settings dialog content wrapper to shrink within the dialog grid.
  • Allow API monitor entries to shrink instead of expanding their grid column.
  • Stack the embedding model control at phone widths so the combobox and Save button remain visible.
  • Add regression contracts for the dialog, API monitor, and compact embedding controls.

Root cause

DialogContent uses a grid layout. Its direct flex child kept its min-content width, so wide API content expanded the grid track beyond the dialog boundary and clipped the right side. Two compact controls also retained fixed min-content widths inside narrower Settings panels.

Impact

Settings tabs remain within the viewport, API monitor rows no longer create internal horizontal overflow, and the embedding model controls remain usable on narrow phones. Desktop sizing and existing tab behavior are unchanged.

Validation

  • Reproduced the issue at 1051 x 666 before the change.
  • Verified all nine Settings tabs at 1051, 800, and 600 pixel widths.
  • Verified API monitor entries at 375 and 320 pixels with long unbroken model paths and tool-call payloads.
  • Verified the embedding model row at 320 pixels.
  • Ran 38 related UI contract tests.
  • Ran the new regression contracts on Python 3.10, 3.11, 3.12, and 3.13 in isolated uv environments.
  • Ran frontend typecheck and production builds on Node 20, 22, and 24.
  • Recorded 1,206 passing Studio tests in the expanded sandbox, then reran 23 load and timing tests and 23 hardware dispatch tests independently with all passing.
  • Ran npm run typecheck.
  • Ran npm run build.
  • Ran npm run i18n:check.
  • Ran the lockfile, dependency-removal, and script-pin audits.
  • Ran git diff --check.

Notes

The API key prefix remains intentionally shortened after creation because the backend does not return the full secret again. This PR fixes unintended layout clipping, not intentional secret redaction or text previews.

The failing Backend CI Python jobs reproduce on current main and are unrelated to this frontend change. PR #7169 fixes the incomplete DeepSeek reasoning test shim that causes those failures.

Five ROCm installer test failures reproduced unchanged on the baseline branch and are unrelated to this frontend-only change.

Closes #7161

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the settings dialog layout in settings-dialog.tsx by adding min-w-0 and w-full classes to the main container element, preventing tab content from expanding the dialog grid. No review comments were provided, and there is no additional feedback.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@shimmyshimmer shimmyshimmer changed the title Fix settings dialog overflow Fix Settings layout overflow Jul 16, 2026
@shimmyshimmer
shimmyshimmer marked this pull request as ready for review July 16, 2026 08:38
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 7283ec2ebe

ℹ️ 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
shimmyshimmer merged commit 1b3d728 into main Jul 16, 2026
34 of 41 checks passed
@shimmyshimmer
shimmyshimmer deleted the agent/fix-settings-dialog-overflow branch July 16, 2026 10:12
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.

API Settings Page Content is Truncated/Cut Off on the Right Side

1 participant