Skip to content

fix: wrap long server names and keep actions menu visible on settings/servers#4434

Open
pparage wants to merge 1 commit into
Dokploy:canaryfrom
pparage:fix/server-card-long-name-overlap
Open

fix: wrap long server names and keep actions menu visible on settings/servers#4434
pparage wants to merge 1 commit into
Dokploy:canaryfrom
pparage:fix/server-card-long-name-overlap

Conversation

@pparage
Copy link
Copy Markdown

@pparage pparage commented May 20, 2026

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-0 on the title container and break-words min-w-0 on the CardTitle, so the title can shrink and wrap instead of overflowing (flex items default to min-width: auto, which was preventing the shrink).
  • shrink-0 on the ServerIcon and the actions trigger button, so neither gets crushed.
  • gap-2 on the header row to keep space between the title and the actions button.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

Note: this is a CSS-only change (Tailwind utility classes) with no logic change. I have not yet run it in a full local instance, so a quick visual confirmation with a long server name would be appreciated.

Issues related (if applicable)

closes #4433

Screenshots (if applicable)

@pparage pparage requested a review from Siumauricio as a code owner May 20, 2026 11:02
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 20, 2026
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.
@pparage pparage force-pushed the fix/server-card-long-name-overlap branch from 2fe3d99 to 9952cc9 Compare May 20, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Long server name overlaps content and hides the actions menu on settings/servers

1 participant