Repository navigation
The function bar takes two rows where one does not fit - #110
Merged
Merged
Conversation
A layer wider than the window was cut at the end (#104), which in one column of a scrolling layout left most labels of the Shift, Ctrl and Alt layers without their word. Where the widest of the four layers does not fit one row, the bar is now two: F1 to F5 over F6 to F10, the keys in columns, every label whole. The switch is made on the widest layer and not the one held, so the bar is as high with a modifier down as without and nothing above it moves. The modifier's name stays at the left of the first row. Cutting at the end is what is left for a window too narrow even for two rows, each column giving up room in proportion. The bar lays its buttons out itself and reports its height for a width; the window's layout asks for it. Its vertical policy is Minimum: with Fixed the box layout caps it at the one-row hint. A layer that is not shown is measured from its texts, the frame around a label being the same for all. The bar still sets no minimum width (#91). test_window: one row with room; at three quarters of the widest layer two rows, keys in columns, labels whole, the same height with and without Ctrl; one row again when widened; a bar of its own at two fifths cuts at the end. Closes #108 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
In the packaging container's font it does not, and the bar is rightly two rows there from the start. One row is checked further down, at a width taken from the layer's own measure. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…its width needs While a job ran, the window could not be narrower than the job's row: title, progress bar, rate and time left and five buttons on one line, about 640 px at a 12 pt font, and the conflict or error bar's row of answers under it was another line that did not give way. In one column of a scrolling layout the content was cut at the edge. The row is two cells in a FlowLayout: what the job is and how far, then the numbers and the buttons. They share a line where there is room and take two where there is not. The answers of the conflict and the error bar wrap the same way; "Apply to all" follows the buttons. Two things kept the first attempt (7a5c703, taken back in afd4241) from working, the bars' lines over one another: - The strip sits in a vertical splitter, which reads size hints and never asks for a height for a width. The strip's hints now give the height its layout needs at the width it has, and it tells the splitter again when its width changes. - A box layout caps a widget whose vertical policy is Fixed at its hint, which for a row that wraps is the height of one line. The job's row and the bars are Minimum instead. The job's panel needed nothing: with it open the window asks for no more than before. test_window: the bound of 75 average characters (#96) is asked of every panel and bar again, the conflict bar with its job running among them. A new case holds a copy at a conflict and looks at what is on screen: wide, the row is one line; in a window as narrow as it may be the buttons are under the progress bar, the strip is higher, and no button, label or bar in it lies over another or outside it, with the job's panel open as well; wide again, the strip gives the second line back. Closes #109 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
With the packaging container's small font the job's row fits one line in the narrowest window the panes allow. That nothing overlaps is asked at any font; that the buttons are under the bar, where the row is wider than the line it has. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The first progress bar found under the strip is one of the job's panel, hidden until Details is pressed; where the row wrapped, the buttons were compared with a bar that is nowhere. Seen in the packaging build (Fusion, no fonts installed), where the row needs its second line and has it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The job's row and the answers under it wrap
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.
Closes #108.
Where the widest of the four layers does not fit one row, the bar is two rows: F1 to F5 over F6 to F10, the keys in columns, every label whole. The switch is made on the widest layer, so the height does not change when a modifier goes down. Cutting at the end (#104) remains for a window too narrow even for two rows. The bar still sets no minimum width (#91).
test_windowcovers one row, two rows, the unchanged height with a modifier held, and the last-resort cut.🤖 Generated with Claude Code