Skip to content

Commit 48e1b15

Browse files
authored
Add truncation to displayed IP in CopyableIp (#2598)
1 parent d144e7d commit 48e1b15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/ui/lib/CopyableIp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
import { CopyToClipboard } from '~/ui/lib/CopyToClipboard'
99

1010
export const CopyableIp = ({ ip, isLinked = true }: { ip: string; isLinked?: boolean }) => (
11-
<span className="flex items-center gap-1">
11+
<span className="flex max-w-full items-center gap-1">
1212
{isLinked ? (
1313
<a
14-
className="link-with-underline text-sans-md"
14+
className="link-with-underline truncate text-sans-md"
1515
href={`https://${ip}`}
1616
target="_blank"
1717
rel="noreferrer"
1818
>
1919
{ip}
2020
</a>
2121
) : (
22-
ip
22+
<span className="truncate">{ip}</span>
2323
)}
2424
<CopyToClipboard text={ip} />
2525
</span>

0 commit comments

Comments
 (0)