Fix mid-screen horizontal scrollbar on wide, short boards#147
Merged
Conversation
The board wrapper div in Board.jsx was a plain block element, breaking the flex chain between .App and main#board-content. Because main's flex-grow had no flex parent to grow within, the board area collapsed to its content height. On a wide board with short columns, main's overflow-x scrollbar then appeared mid-screen instead of at the viewport bottom. Add a stable .board-layout class to the wrapper with a flex-column layout so main fills the available height, columns stretch full height, and the horizontal scrollbar sits at the bottom of the screen. Also add a functional in-memory localStorage polyfill in setupTests.js. jsdom does not provide Web Storage in this environment, which made the useRecentBoards and ColumnsContainer tests fail on localStorage.clear(). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ Deploy Preview for kanbanish ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
crittermike
added a commit
that referenced
this pull request
Jun 18, 2026
…)" This reverts commit 7080aa3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On a board with many columns (wide) but few cards (short), an ugly horizontal scrollbar appeared in the middle of the screen with empty space below it.
Cause
The board wrapper
<div>inBoard.jsxwas a plain block element, breaking the flex chain between.Appandmain#board-content.mainhasflex-grow: 1, but with no flex parent to grow within, the board area collapsed to its content height. With short columns,main'soverflow-x: autoscrollbar landed mid-screen instead of at the viewport bottom.Fix
.board-layoutclass to the wrapper with a flex-column layout (display: flex; flex-direction: column; flex-grow: 1; min-height: 0). Nowmainfills the available height, columns stretch full height (they already hadheight: 100%), and the horizontal scrollbar sits at the bottom of the screen.Also included
localStoragepolyfill insetupTests.js. jsdom doesn't provide Web Storage in this environment, which made theuseRecentBoardsandColumnsContainertests fail onlocalStorage.clear(). All 1396 tests now pass.Verification
npm run lint— cleannpm run build— succeedsnpm test— 1396 passed (previously 16 failing)