Skip to content

Commit 38a57f5

Browse files
authored
fix: add ellipsis for overflowing rpc labels (#87)
1 parent 4639514 commit 38a57f5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function RpcUrl() {
293293
borderRadius="round"
294294
style={{ minWidth: 8, minHeight: 8 }}
295295
/>
296-
<Text size="12px" wrap={false} width="full">
296+
<Text size="12px" wrap={false} width="full" style={{overflow: "hidden", textOverflow: "ellipsis"}}>
297297
{network.rpcUrl.replace(/https?:\/\//, '')}
298298
</Text>
299299
</Inline>

src/screens/networks.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ function NetworkRow({
166166
color={data ? 'text' : 'text/tertiary'}
167167
size="12px"
168168
wrap={false}
169+
style={{overflow: "hidden", textOverflow: "ellipsis"}}
169170
>
170171
{network.rpcUrl.replace(/https?:\/\//, '')}
171172
</Text>

0 commit comments

Comments
 (0)