diff --git a/resources/css/flowforge-modern.css b/resources/css/flowforge-modern.css index bbca3505d..0fb809661 100644 --- a/resources/css/flowforge-modern.css +++ b/resources/css/flowforge-modern.css @@ -315,7 +315,8 @@ flex-direction: column; min-height: 4rem; max-height: calc(100vh - 13rem); - padding: 0.5rem; + /* macOS overlay scrollbars paint inside the inline padding. At 0.5rem the thumb touched the card ring. */ + padding: 0.5rem 0.75rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; diff --git a/tests/Browser/ModernBoardTest.php b/tests/Browser/ModernBoardTest.php index 705bb5bd2..5dd0618b8 100644 --- a/tests/Browser/ModernBoardTest.php +++ b/tests/Browser/ModernBoardTest.php @@ -707,6 +707,20 @@ function boardTraySampler(int $budgetMilliseconds): string JS); }); +test('a card leaves room for an overlay scrollbar on both sides of its tray', function () { + boardSeed(); + $page = boardPage('/modern/test-board'); + + $page->assertScript(<<<'JS' + (() => { + const cards = document.querySelector('[data-column-id="todo"]').getBoundingClientRect(); + const card = document.querySelector('[data-column-id="todo"] > [data-card-id]').getBoundingClientRect(); + + return card.left - cards.left === 12 && cards.right - card.right === 12; + })() + JS); +}); + test('a full column and a collapsed rail carry their server-side states', function () { boardSeed(); $page = boardPage('/modern/test-browser-board');