mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Those two carry four buttons each and have room for the words on any window worth supporting, so the fit measurement leaves them alone. A board carries ten controls, and is the page the measurement exists for - there it still drops the names when the bar would wrap. The header marks the bar `header-labels-always` from the route, and fitHeaderLabels() returns early when it sees that class. Which page you are on is the header's business; client/lib/utils.js knows only about boxes, and teaching it about routes would have put the same question in two places. It returns AFTER showing the labels, not before. A page that opts out would otherwise inherit whatever the previous page's measurement had left on the bar - so following a link from a narrow board to All Boards would land on All Boards with its names hidden. The guard pins that ordering, because it is invisible from reading the two lines in isolation. Thanks to xet7 !