Skip to content

Count a slim card's least width as its limit in leaf-dev placement cards - #6680

Merged
max-sixty merged 1 commit into
mainfrom
placement-cards-slim
Nov 21, 2026
Merged

max-sixty merged 1 commit into
mainfrom
placement-cards-slim

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

leaf-dev placement cards flagged every slim card as narrower than it could be. Since #5991 a card beside its words stands at the least width (--lf-thread-card-min, 320 px) until a message it shows stands taller than it is wide, and it declares that with data-lf-widens. The gallery measured a card only against its words, the measure and its room, so on today's main in Firefox 17 of its 54 captures carried a warning such as "160 px narrower than its room" for a card standing exactly as the rule says.

The reading now takes the least width as one more limit for a card that declares data-lf-widens, read from the card itself rather than restating the rule, so the gallery follows the runtime if the rule changes again. On a ref before #5991 no card declares it, and --base reads as before.

Checked with a full Firefox run on this branch: the slim-card warnings are gone, and every other flag (the cards that cover a subject they can't share the window with, and the kept scrolled case) is unchanged.

This was written by Claude Code on behalf of max-sixty

Since #5991 a card beside its text stands at the least width
(--lf-thread-card-min) until a message it shows stands taller than it is wide,
and declares so with data-lf-widens. The gallery still measured a card only
against its words, the measure and its room, so on today's main it flagged 17
slim cards as 16 to 267 px narrower than they could be, though each stands as
the rule says. The reading now takes the least width as a limit for a card that
declares data-lf-widens, read from the card rather than recomputing the rule.
@max-sixty
max-sixty merged commit 8971d32 into main Nov 21, 2026
6 checks passed
@max-sixty
max-sixty deleted the placement-cards-slim branch November 21, 2026 21:08
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.

2 participants