Skip to content

The function bar takes two rows where one does not fit - #110

Merged
crustovsky merged 6 commits into
mainfrom
funcbar-two-rows
Nov 26, 2026
Merged

crustovsky merged 6 commits into
mainfrom
funcbar-two-rows

Conversation

@crustovsky

Copy link
Copy Markdown
Owner

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_window covers one row, two rows, the unchanged height with a modifier held, and the last-resort cut.

🤖 Generated with Claude Code

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>
crustovsky and others added 5 commits November 26, 2026 20:30
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
@crustovsky
crustovsky merged commit b0b59be into main Nov 26, 2026
2 checks passed
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.

Function bar: wrap to two rows where one does not fit

1 participant