interface/GroupLink: set full-width click area

"fit-content" limits the clickable space for the group link, so we just
tell the row to expand to its parent.

Fixes urbit/landscape#978
This commit is contained in:
Matilde Park 2021-06-15 13:18:26 -05:00
parent 617b97b450
commit 0cfa7a2d50

View File

@ -59,7 +59,7 @@ export function GroupLink(
>
{modal}
<Row
width="fit-content"
width="100%"
flexShrink={1}
alignItems="center"
py={2}
@ -69,7 +69,7 @@ export function GroupLink(
}
opacity={preview ? '1' : '0.6'}
>
<MetadataIcon height={6} width={6} metadata={preview ? preview.metadata : { color: '0x0' , picture: ''}} />
<MetadataIcon height={6} width={6} metadata={preview ? preview.metadata : { color: '0x0' , picture: '' }} />
<Col>
<Text ml={2} fontWeight="medium" mono={!preview}>
{preview ? preview.metadata.title : name}