Skip to content

Commit 47d8733

Browse files
committed
fix: column title long names.
1 parent 01daaa1 commit 47d8733

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,8 @@
13641364
<span
13651365
class="column-title"
13661366
class:animate-in={!columnObj?.isPlaceholder}
1367-
style:--animation-delay={`${isColumnInteractable ? (index - 1) * 100 : 0}ms`}>
1367+
style:--animation-delay={`${isColumnInteractable ? (index - 1) * 100 : 0}ms`}
1368+
title={column.title}>
13681369
{column.title}
13691370
</span>
13701371

@@ -2138,10 +2139,17 @@
21382139
max-height: 184px;
21392140
}
21402141
2142+
.column-title {
2143+
max-width: 125px;
2144+
overflow: hidden;
2145+
text-overflow: ellipsis;
2146+
}
2147+
21412148
/* Sequential animation for column titles and icons */
21422149
.column-title,
21432150
.column-icon-wrapper {
21442151
opacity: 0;
2152+
flex-shrink: 0;
21452153
transform: translateY(4px);
21462154
transition:
21472155
opacity 0.4s ease-out,

src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const mockSuggestions: { total: number; columns: ColumnInput[] } = {
6868
formatOptions: null
6969
},
7070
{
71-
name: 'authorName',
71+
name: 'productionCompany',
7272
type: 'string',
7373
size: 128,
7474
format: null,

0 commit comments

Comments
 (0)