Skip to content

Commit f6513fa

Browse files
committed
Fix ellipising in nested target list text
1 parent 321f772 commit f6513fa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/intercept/config/intercept-target-list.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,20 @@ const TargetButton = styled(Button)<{
7979
}
8080
`;
8181

82-
const TargetText = styled.span<{ ellipseDirection: 'left' | 'right' }>`
82+
const TargetText = styled.div<{ ellipseDirection: 'left' | 'right' }>`
8383
flex-grow: 1;
8484
8585
overflow: hidden;
8686
white-space: nowrap;
8787
text-overflow: ellipsis;
8888
text-align: center;
8989
90+
&, & * {
91+
overflow: hidden;
92+
text-overflow: ellipsis;
93+
white-space: nowrap;
94+
}
95+
9096
${p => p.ellipseDirection === 'left' ?
9197
'direction: rtl;'
9298
: ''}

0 commit comments

Comments
 (0)