mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 14:45:11 -05:00
#6943 comment 7190880990: after hiding the collapse caret the board was still less compact than before - space at the top and between the cards. The top was the keyboard move buttons (#459): visually hidden, but a 14px line of every minicard above its title. They are out of the flow now, in the card's starting corner, 1px until focused, and still shown while focused (#6521). Between two cards the wrapper's 8px (12px on moderndark) came on top of the card's own 9px (0.5rem in Mobile Mode); in both modes the wrapper adds none. With the menu hidden the title takes the menu's corner too, and a badge strip with no badge in it takes no line. The desktop drag handle sat under the menu, inside the card only because of that 14px line: a card with a handle is now as tall as menu and handle, and without the menu the handle takes its corner. tests/playwright/specs/minicard-spacing-6943.e2e.js measures the board with the caret and the menu shown and hidden: the title starts at the card's top, a card without badges ends under its title, the badges are inside the card under the title and clear of the controls, the gap between cards is one margin, the handle is inside the card, and the move buttons still move a card from the keyboard. Without the fix it fails (18px above the title). tests/minicardControls6943.test.cjs pins the rules. 24-feature-issues' #459 test now uses the move button as the keyboard does, focus and Enter: a 1px target is not for a pointer. Thanks to sirup and xet7 !