Skip to content

Commit 3ca9899

Browse files
fix: truncate long database names in navigation
1 parent 8c1b58a commit 3ca9899

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/routes/(console)/project-[region]-[project]/databases/database-[database]/subNavigation.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
class="database-name u-flex u-cross-center body-text-2 u-gap-8 is-not-mobile u-padding-block-8 u-padding-inline-start-4">
126126
<Icon icon={IconDatabase} size="s" color="--fgcolor-neutral-weak" />
127127

128-
{data.database?.name}
128+
<span class="database-name-text">{data.database?.name}</span>
129129
</a>
130130
<div class="entity-content" style:padding-bottom={entityContentPadding}>
131131
{#if loading}
@@ -295,6 +295,7 @@
295295
margin-block-end: 4px;
296296
font-size: var(--font-size-sm);
297297
color: var(--fgcolor-neutral-secondary);
298+
overflow: hidden;
298299
299300
&:hover {
300301
color: var(--fgcolor-neutral-primary);
@@ -303,6 +304,13 @@
303304
}
304305
}
305306
307+
.database-name-text {
308+
min-width: 0;
309+
overflow: hidden;
310+
text-overflow: ellipsis;
311+
white-space: nowrap;
312+
}
313+
306314
.entity-content {
307315
flex: 1;
308316
overflow-y: auto;

0 commit comments

Comments
 (0)