You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix sidebar widening with oversized content - #2246
Wide tables in community descriptions stretched the sidebar because its grid item retained an automatic minimum width. Setting min-width: 0 lets the sidebar shrink while tables scroll within their existing wrapper.
melroy89
added
bug
Something isn't working
frontend
Visual issues, improvements, bugs or other aspects relating mostly to the front end
labels
Oct 9, 2026
The min-width is a common problem with grid items. That's why I planned to introduce a helper CSS class grid-minw-0 which is supposed to be applied to the grid and the rule matches all its immediate items.
As you already created this PR, do you want to implement that?
The min-width is a common problem with grid items. That's why I planned to introduce a helper CSS class grid-minw-0 which is supposed to be applied to the grid and the rule matches all its immediate items.
As you already created this PR, do you want to implement that?
TO better match a commonly used name, like tailwind, I called it .grid-min-w-0 if you do not mind. This also helps to easily onboard new devs as well.
I also want to add more classes now, like: .flex-col, .items-center, .justify-between various .gap-* classes and also just a.min-w-0 class that directly applies to the element itself, instead of children. As well as .shrink-0, .flex-1 and maybe even .grid-cols-2 for two equal column that can shrink.
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
bugSomething isn't workingfrontendVisual issues, improvements, bugs or other aspects relating mostly to the front end
2 participants
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.
Wide tables in community descriptions stretched the sidebar because its grid item retained an automatic minimum width. Setting
min-width: 0lets the sidebar shrink while tables scroll within their existing wrapper.Root-cause is this donation button in the description on https://kbin.melroy.org/m/piracy@lemmy.dbzer0.com:
Before:
After: