Skip to content

Commit 4aea703

Browse files
committed
fix: truncate long server names
Signed-off-by: Evan Song <theevansong@gmail.com>
1 parent da79c06 commit 4aea703

File tree

1 file changed

+6
-7
lines changed
  • apps/frontend/src/pages/servers/manage

1 file changed

+6
-7
lines changed

apps/frontend/src/pages/servers/manage/[id].vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,26 @@
99
<div
1010
v-if="serverData && serverData.status !== 'installing'"
1111
data-pyro-server-manager-root
12-
class="mx-auto flex min-h-screen w-full max-w-[1280px] flex-col gap-6 px-3 transition-all duration-300"
12+
class="mx-auto box-border flex min-h-screen w-full max-w-[1280px] flex-col gap-6 px-3 transition-all duration-300"
1313
:class="error ? 'pointer-events-none select-none blur-md' : ''"
1414
>
15-
<div class="flex flex-row items-center gap-6 pt-4">
15+
<div class="flex w-full min-w-0 flex-row items-center gap-6 pt-4">
1616
<UiServersServerIcon :image="serverData.image" />
17-
<div class="flex w-full flex-col gap-2">
17+
<div class="flex w-full flex-1 flex-col gap-2">
1818
<div class="flex shrink-0 flex-row items-center gap-1">
1919
<NuxtLink to="/servers/manage" class="breadcrumb goto-link flex w-fit items-center">
2020
<LeftArrowIcon />
2121
All servers
2222
</NuxtLink>
2323
</div>
24-
<div class="flex flex-row items-center gap-4">
25-
<h1 class="m-0 flex-grow text-4xl font-bold text-[var(--color-contrast)]">
24+
<div class="flex w-full flex-row items-center gap-4">
25+
<h1 class="m-0 w-full truncate text-4xl font-bold text-[var(--color-contrast)]">
2626
{{ serverData.name }}
2727
</h1>
28-
<!-- only show power action button when websocket is fully connected -->
2928
<div
3029
v-if="isConnected"
3130
data-pyro-server-action-buttons
32-
class="server-action-buttons-anim"
31+
class="server-action-buttons-anim flex w-fit flex-1"
3332
>
3433
<UiServersPanelServerActionButton
3534
class="flex-shrink-0"

0 commit comments

Comments
 (0)