Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion resources/css/flowforge-modern.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 14 additions & 0 deletions tests/Browser/ModernBoardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading