Repository navigation
Keep Workshop thread header icons inside a narrow panel - #1814
Merged
Merged
Conversation
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.
Closes #1813
Summary
.thread-panegetsgrid-template-columns: minmax(0, 1fr).The pane had only
grid-template-rows, so its single implicit column wasautoand grew to the widest child's min-content width. Since the thread header became a single no-wrap row, its min-content is the full "Thread in " label plus the icons. In a narrow context panel that is wider than the panel, so the header icons and the replies below were pushed past the right edge. Fixing the column's minimum at 0 caps it at the panel width; the label's existingoverflow: hiddenandtext-overflow: ellipsisthen truncate it.Testing
npx vitest run: 289 passed (jsdom does no layout, so the tests cannot show this).npm run verify-generatedclean.