Skip to content

Commit

Permalink
Scroll online peers (#36)
Browse files Browse the repository at this point in the history
* Update overflow property in Online peers
  • Loading branch information
vderunov authored Mar 13, 2024
1 parent a20fed5 commit 3d50cdc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/renderer/Ipfs/Ipfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,28 @@ export function Ipfs() {
<DrawerCloseButton />
<DrawerHeader>Online peers</DrawerHeader>
<DrawerBody>
<Stack direction="column" margin="0" overflow="scroll">
<Stack direction="column">
{peers.map((peer, i) => (
<Code
key={peer.id}
fontSize="10px"
display="block"
backgroundColor="transparent"
whiteSpace="nowrap"
overflow="hidden"
textOverflow="ellipsis"
>
{`${i}`.padStart(3, '0')}.{' '}
<Tooltip
hasArrow
placement="top"
openDelay={200}
fontSize="xs"
label={peer.id === peerId ? 'Your connected Peer ID' : 'Copy Peer ID'}
label={
peer.id === peerId
? `Your connected Peer ID\n${peer.id}`
: `Copy Peer ID\n${peer.id}`
}
>
<Text
as="span"
Expand Down

0 comments on commit 3d50cdc

Please sign in to comment.