Skip to content

Commit 1ca2c96

Browse files
committed
Truncate operator *names* with CSS
1 parent 82b2ac8 commit 1ca2c96

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ function OperatorsTable({
331331
operatorId={id}
332332
operatorName={name}
333333
imageUrl={imageUrl}
334+
truncate={!!name}
334335
/>
335336
),
336337
align: 'start',

0 commit comments

Comments
 (0)