Skip to content

Commit

Permalink
fix: add ellipsis for overflowing rpc labels (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentConley authored Dec 9, 2023
1 parent 4639514 commit 38a57f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function RpcUrl() {
borderRadius="round"
style={{ minWidth: 8, minHeight: 8 }}
/>
<Text size="12px" wrap={false} width="full">
<Text size="12px" wrap={false} width="full" style={{overflow: "hidden", textOverflow: "ellipsis"}}>
{network.rpcUrl.replace(/https?:\/\//, '')}
</Text>
</Inline>
Expand Down
1 change: 1 addition & 0 deletions src/screens/networks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ function NetworkRow({
color={data ? 'text' : 'text/tertiary'}
size="12px"
wrap={false}
style={{overflow: "hidden", textOverflow: "ellipsis"}}
>
{network.rpcUrl.replace(/https?:\/\//, '')}
</Text>
Expand Down

0 comments on commit 38a57f5

Please sign in to comment.