8000 fix(core): a long folded collection entry no longer overflows the form by Klehm · Pull Request #98 · Klehm/content-blocks-project · GitHub
[go: up one dir, main page]

Skip to content

fix(core): a long folded collection entry no longer overflows the form - #98

Merged
Klehm merged 1 commit into
masterfrom
fix/collection-entry-overflow
Dec 2, 2026
Merged

Klehm merged 1 commit into
masterfrom
fix/collection-entry-overflow

Conversation

@Klehm
@Klehm Klehm commented Dec 2, 2026
Copy link
Copy Markdown
Owner

A folded collection entry shows a one-line summary (a FAQ question, a tab title). The collection is a single-column grid with grid-template-columns: 1fr, and a 1fr track never shrinks below its content's min-content width: a long summary pushed every entry past the sidebar.

The column is now minmax(0, 1fr), so the summary's existing text-overflow: ellipsis applies.

Test: collection-fold.spec.js folds an entry with a long title and checks that it stays inside the collection and that its summary is clipped. Without the fix the entry's right edge was at 752px against 275px for the list.

A folded entry's summary is one nowrap line, and a plain 1fr grid column
never shrinks below its content: every entry grew past the sidebar. The
column is now minmax(0, 1fr), so the summary ends with an ellipsis.
@Klehm
Klehm force-pushed the fix/collection-entry-overflow branch from 81c4fa2 to 2c55235 Compare December 2, 2026 10:51
@Klehm
Klehm merged commit 6fa38bb into master Dec 2, 2026
53 checks passed
@Klehm
Klehm deleted the fix/collection-entry-overflow branch December 2, 2026 10:59
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

0