Repository navigation
A minimum window size: window.minWidth and window.minHeight - #10
Merged
Merged
Conversation
An app's layout has a size below which it cannot work, and nothing kept the window from being squeezed below it: the Tracker at 400px wide was a sidebar and slivers. `window.minWidth` and `window.minHeight` in sepal.config.ts (app.json) now say how small the window can be made, in logical pixels; either alone does. The host gives them to winit as the window's minimum surface size, and the window never opens smaller than them. Values of the wrong type are ignored, as for width and height. The Tracker sets 720 x 520: below 720px a row's date no longer fits beside its title, and below 520px the sidebar's last entries do not. A manifest test reads both, one alone, nonsense, and checks the initial size is raised to the minimum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
theetherGit
added a commit
that referenced
this pull request
Nov 26, 2026
At 720px (the smallest window the Tracker asks for, #10) the Board's filter bar ran out of the window, Project out of reach, and the Insights tiles and lower panels were cut off at its right edge. Both are the example's CSS, as headless Chrome shows with the same build: the Board's bar was one line that could not wrap, and the Insights rows were `2fr 1fr 1fr 1fr` and `3fr 2fr`, whose fr tracks cannot shrink below their content (the tiles' large numbers, the priority table). - The Board's filter bar wraps onto another line when it has to, as the list's toolbar does. Its columns scroll sideways, as before. - Insights puts its four tiles in one row where each 1fr tile gets the ~155px its number needs (1120px of window), and two by two below that; its two panels sit side by side from the same width and stack below it. A test opens both at 720px: the Board's filters stay in the window and can be clicked, and every Insights tile and panel is inside it. It failed before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
theetherGit
marked this pull request as ready for review
November 26, 2026 15:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Lets an app set how small its window can be made.
An app's layout has a size below which it can't work, and nothing stopped the window from being squeezed below it. At 400 px wide, the Tracker was a sidebar and slivers.
window.minWidthandwindow.minHeightinsepal.config.ts, which end up inapp.json. They're in logical pixels, and either one alone works. Values of the wrong type are ignored, as forwidthandheight.with_min_surface_size). The window never opens smaller than its minimum (Manifest::size()raises the initial size).sepal.config.tstype, README and CHANGELOG are updated.Tests
a_minimum_window_size_is_read_and_the_window_starts_no_smaller(manifest): both values, one alone, nonsense values, and the initial size raised to the minimum.pnpm testpasses locally (134 host tests).The minimum itself only exists in a real window, so no headless test can exercise it. To check by hand: open the Tracker and try to narrow the window below 720 px.
🤖 Generated with Claude Code