Skip to content

Commit f5bcebb

Browse files
authored
fix [FRONT-2358]: Truncate operator *names* with CSS (#2004)
* Truncate operator *names* with CSS * Apply the same logic to `DelegationsTable` for consistency
1 parent 82b2ac8 commit f5bcebb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/Table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const OperatorName = styled.div<{ $truncate?: boolean }>`
5555
overflow: hidden;
5656
text-overflow: ellipsis;
5757
white-space: nowrap;
58+
max-width: 12rem;
5859
`}
5960
`
6061

src/pages/OperatorsPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ function DelegationsTable({
244244
operatorId={id}
245245
operatorName={name}
246246
imageUrl={imageUrl}
247+
truncate={!!name}
247248
/>
248249
),
249250
align: 'start',
@@ -331,6 +332,7 @@ function OperatorsTable({
331332
operatorId={id}
332333
operatorName={name}
333334
imageUrl={imageUrl}
335+
truncate={!!name}
334336
/>
335337
),
336338
align: 'start',

0 commit comments

Comments
 (0)