Repository navigation
Count a slim card's least width as its limit in leaf-dev placement cards - #6680
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Nov 21, 2026
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.
leaf-dev placement cardsflagged 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 withdata-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--basereads 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
scrolledcase) is unchanged.