Lower minimum window width to 375px #641
Open
+50
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For your pull request to not get closed without review, please confirm that:
If such issue did not exist before, I opened one.
otherwise I have marked my PR as draft.
organization if I lied by checking any of these checkboxes.
Tested on (check one or more):
This PR changes the minimum window width such that the browser can size beyond 500px to make it easier to test responsive viewports without being forced to open devtools et al.
All of the research of this and the code was written by Codex but it seems trivial enough. I've been testing it on macOS.
To give some added context, the
BrowserViewLayout::GetMinimumSizemethod is responsible for computing the minimum viewport and it does that by taking multiple minimums into accounts. In addition to changing two hardcoded minimum widths, the toolbar was constrained by the omnibox minimum characters.However, reducing the omnibox min chars clashes with this change in the experimental one-line toolbar. To resolve this I'm proposing we hide the back, forward, and refresh buttons in these ultra-small viewports (<500px) and keep the min chars as-is.
Before
After
CleanShot.2025-12-21.at.23.05.24.mp4