Skip to content

Commit 9952cc9

Browse files
committed
fix: wrap long server names and keep actions menu visible
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.
1 parent 6e342ee commit 9952cc9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/dokploy/components/dashboard/settings/servers/show-servers.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ export const ShowServers = () => {
131131
className="relative hover:shadow-lg transition-shadow flex flex-col bg-transparent"
132132
>
133133
<CardHeader className="pb-3">
134-
<div className="flex items-start justify-between">
135-
<div className="flex items-center gap-2">
136-
<ServerIcon className="size-5 text-muted-foreground" />
137-
<CardTitle className="text-lg">
134+
<div className="flex items-start justify-between gap-2">
135+
<div className="flex min-w-0 items-center gap-2">
136+
<ServerIcon className="size-5 shrink-0 text-muted-foreground" />
137+
<CardTitle className="text-lg break-words min-w-0">
138138
{server.name}
139139
</CardTitle>
140140
</div>
@@ -145,7 +145,7 @@ export const ShowServers = () => {
145145
<DropdownMenuTrigger asChild>
146146
<Button
147147
variant="ghost"
148-
className="h-8 w-8 p-0"
148+
className="h-8 w-8 shrink-0 p-0"
149149
>
150150
<span className="sr-only">
151151
More options

0 commit comments

Comments
 (0)