Skip to content

Commit 2385654

Browse files
committed
Updated the PartyId component to use text-break class instead of trunctate
1 parent 6f87b21 commit 2385654

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

mithril-explorer/src/components/PartyId.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ export default function PartyId({partyId}) {
1111
}
1212

1313
return (
14-
<>
15-
<Button variant="link" onClick={copyToClipboard} size="md" className="p-0">
16-
<i className="bi bi-copy" style={{color: 'black'}}></i>
17-
</Button>
18-
<> </>
19-
<OverlayTrigger overlay={<Tooltip>{partyId}</Tooltip>}>
20-
<span>{formatPartyId(partyId)}</span>
14+
<span className="text-break">
15+
{partyId}<> </>
16+
<OverlayTrigger overlay={<Tooltip>Copy</Tooltip>}>
17+
<Button variant="link" onClick={copyToClipboard} size="md" className="p-0">
18+
<i className="bi bi-copy" style={{color: 'black'}}></i>
19+
</Button>
2120
</OverlayTrigger>
22-
</>
21+
</span>
2322
);
2423
}

0 commit comments

Comments
 (0)