mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
The avatar dropped to a second line even with space left beside the bell, because a width-based rule forced `flex-wrap: wrap !important` on the quick-access bar - added deliberately, with the comment "so ~7 items fit in two wrapped rows". An !important wrap beats any nowrap, so the earlier one-row work never took effect at small width; and a wrapping flex row breaks BEFORE the last item rather than shrinking anything, which is why the avatar went down while empty space stayed behind on row one. Every flex-wrap rule on that bar is now nowrap (verified by listing all eight), and the items are made to fit rather than the row made to grow. `overflow: visible` is kept, so a long translation or a custom logo spills instead of disappearing. The username/full name beside the avatar is also hidden at small width, as reported. The template already hides it `unless isMiniScreen`, but that is a JS/Session decision - Utils.isMiniScreen() also weighs mobile mode and the device - so it can be true while the bar is narrow, and a full name is easily 100px+ of a 375px bar. Same bare-text-node situation as the home link: font-size:0 on the link collapses the name, and the avatar keeps its own size (with a font-size restored on the avatar wrapper so initials avatars, which have no size of their own, do not vanish with it). The name stays in the DOM for screen readers. Measured budget for an iPhone 12 mini is now 328px of 375px. Thanks to xet7 !