Skip to content

The board fits a window of any width - #52

Merged
erhangundogan merged 4 commits into
mainfrom
narrow-board-title
Dec 1, 2026
Merged

erhangundogan merged 4 commits into
mainfrom
narrow-board-title

Conversation

@erhangundogan

Copy link
Copy Markdown
Collaborator

The board's table never scrolls the page sideways: the title keeps a readable share of the row and gives room last, columns that fit their content are never squeezed below it, the score inputs hide below 900px and docs below 600px, needs first and docs wrap their badges past 12% of the row, and on a window too narrow for every minimum all columns shrink in proportion. The table also checks the width it is drawn at. The badges in the rows are smaller and the fade under a sticky head is a 1px band.

The columns' minimums were met by taking room from the title first, down to its header, so with wide widths kept from a drag a narrow window left it 44px and its words broke into letters. The title now keeps a third of the row, up to 180px, and gives room last.
Keeping their content on one line pushed the table past a narrow window when an item needs or has several. When the minimums do not fit, they now wrap their badges, down to their header's width, before the table leaves the page; the title still gives room last.
Columns that fit their content (id, the scores, status) are no longer
squeezed below it, which pushed the status select past the table. Below
900px needs first and docs wrap their badges and leave the room to the
title, and below 600px docs is hidden, as the score columns are below
700px. After laying out, the table checks the width it is drawn at,
which can be wider than the widths add up to (Firefox's controls), and
takes what spills over from the columns, the title last.
Between 700 and 900px the four score inputs still showed and the
columns' minimums did not fit, so the page scrolled sideways in some
browsers; they now hide below 900px. When even the minimums do not fit
(a very narrow window), every column shrinks in proportion, its controls
with it, so the table never leaves the page. needs first and docs keep
their badges on one line only up to 12% of the row each, and wrap past
that, leaving the room to the title.

The badges in the board's rows are smaller (11px), and the fade under a
sticky head is a 1px band with a 1px blur.
@erhangundogan
erhangundogan merged commit 25a6d1e into main Dec 1, 2026
10 of 11 checks passed
@erhangundogan
erhangundogan deleted the narrow-board-title branch December 1, 2026 19:15
@erhangundogan erhangundogan mentioned this pull request Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant