mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-19 02:10:15 -05:00
The pane drew each heading with `Button::selectable(..).truncate()`, so a heading wider than the pane ended in an ellipsis and its text had to be read from the hover tooltip. Word wraps the row instead. `nav_heading` now wraps: the button takes `Button::wrap()` and a minimum size of the available width and one row, so the label continues on further lines inside the pane, the row grows with the text, and the pane still keeps its width. The trailing grow atom still keeps the text flush left under its parent (#1199). The hover tooltip goes with the ellipsis: nothing is hidden now, and a word wider than the pane is broken by the wrap instead of overflowing. The navigation test asserts the wrap instead of the ellipsis. For a heading well past the width and for a single word wider than the pane, the label has more than one line, is not elided, stays inside the pane, does not widen it, and takes a taller row than a one-line heading in the same pane. `docs/ui-parity.md` and `ROADMAP.md` record the new behaviour. Co-authored-by: Brandon Thomas <brandon@storyteller.ai>