mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
They were placed by whatever margin happened to win: one auto margin on the zoom pill pushed the pill, the bell and the avatar to the end of the row as a packed group, so the bell sat against the pill with all the empty space beyond it, and the avatar's distance from the edge was whatever was left over - different in mobile mode and in desktop mode on the same phone. Below 800px - a width, so both modes get it - the free space is shared around the bell instead: an auto margin on EACH side of it puts it midway between the zoom pill and the avatar, and the avatar keeps a fixed 12px gap to the right edge rather than being flung against it. Exactly one auto margin belongs to the bell pair; the user bar's is cleared, since two would split the row and separate them again. Both `.iphone-device` variants are named in the selector list. That fallback sets these margins with `!important` and two classes more than a bare id selector, so without naming them the placement would apply everywhere EXCEPT the phone this was reported from. The cascade was resolved property by property, shorthand `margin` included, rather than assumed. tests/narrowWindowLayout.test.cjs pins the two auto margins, the single fixed gap, and that the iphone-device variants are named. Thanks to xet7 !