Repository navigation
fix(email-blocks): keep template cards one width in every chooser section - #196
Merged
Merged
Conversation
…tion The grid used auto-fit, which drops empty columns, so a section with a single template (often "Your templates") stretched that card across the whole row. auto-fill keeps the columns, so cards stay card-sized.
s3rot0n1n
approved these changes
Nov 12, 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.
Problem
In
TemplateChooser, a section with only one or two templates stretches its cards across the whole row. "Your templates" often has a single saved template, so its card fills the dialog while the System cards next to it stay card-sized.The card grid uses
repeat(auto-fit, minmax(13rem, 1fr)).auto-fitdrops the empty column tracks, so the remaining cards share the full width.Fix
Switch to
auto-fill, which keeps the empty tracks, so cards are the same width in every section however many templates it has.A patch changeset for
@sendlit/email-blocksis included.Checks
email-blocks: typecheck, build and tests (10/10) pass./email-blocks/template-chooser): the single "Your templates" card is now 315px, the same as the System cards. Before, it spanned the row.