mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
Two things, and the first makes the second possible. Nothing in the bar is pushed to the far end or centred any more. Three rules did it: an auto margin on the first button after the drag-handles toggle, which sent everything from there to the right edge; an auto margin on the user menu on phones; and an auto margin on EACH side of the bell, which centred it in whatever space was left. Each of them puts a hole in the middle of the row, and which items land on which side of the hole changes with the window width. The bar packs from the start and wraps forward now - left to right in a left-to-right language, right to left in a right-to-left one, which flexbox does by itself because it follows the writing direction, so there is no second rule to keep in step. .header-quick-access-end stays display:contents. It carries no alignment now, but that is what makes its buttons items of the BAR: as a flex box of its own it was a single item, and the whole group dropped to the second row together. And the button names are shown everywhere, at every width. They were dropped when the bar ran out of room - first below a fixed 1100px, then by measuring whether the bar had wrapped - and xet7 has now asked for them on boards too. So the measurement decides nothing, and it is deleted rather than left inert: 111 lines of utils.js, the CSS rule it drove, and 43 lines of guard that described it. A mechanism that no longer decides anything still reads as one that does. The bar wraps, and a wrapped second row is a better answer than a row of unlabelled pictures. header-keeps-text stays, because it still has a job: the USERNAME, which the narrow-screen rules collapse everywhere except All Boards and the Admin Panel. Its comments say that now rather than talking about labels. An older guard pinned the phone centring on purpose, with a paragraph on why the bell sat midway. That decision is reversed, so the guard is rewritten to the new rule and says what changed - and the new one checks the SHAPE: no rule that positions something within the bar may use an auto margin or a justify-content. A justify-content inside a button centres that button's own icon and is not alignment of the bar's items, so the check is scoped to rules on the bar itself. Thanks to xet7 !