fix: wrap long server names and keep actions menu visible on settings/servers#4434
Open
pparage wants to merge 1 commit into
Open
fix: wrap long server names and keep actions menu visible on settings/servers#4434pparage wants to merge 1 commit into
pparage wants to merge 1 commit into
Conversation
On settings/servers, a long server name in the card title (h3) did not wrap and overflowed its container, overlapping nearby content and squeezing the three-dots actions menu until it disappeared. Allow the title block to shrink and wrap (min-w-0 + break-words), keep the server icon and the actions trigger from being crushed (shrink-0), and add gap between the title and the actions button.
2fe3d99 to
9952cc9
Compare
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.
What is this PR about?
On
/dashboard/settings/servers, a long server name in the card title (h3) did not wrap. It overflowed its container, overlapped the surrounding content, and squeezed the three-dots actions menu until it disappeared.This fixes the card header layout so the name wraps onto multiple lines and the actions menu stays visible and clickable regardless of the name length. The change is CSS-only (Tailwind classes) in
show-servers.tsx:min-w-0on the title container andbreak-words min-w-0on theCardTitle, so the title can shrink and wrap instead of overflowing (flex items default tomin-width: auto, which was preventing the shrink).shrink-0on theServerIconand the actions trigger button, so neither gets crushed.gap-2on the header row to keep space between the title and the actions button.Checklist
Before submitting this PR, please make sure that:
canarybranch.Issues related (if applicable)
closes #4433
Screenshots (if applicable)