groups: truncate long recent group entries

This commit is contained in:
Matilde Park 2020-10-05 17:37:46 -04:00
parent 00703e74a1
commit 35cd36407d

View File

@ -57,9 +57,10 @@ function RecentGroups(props: { recent: string[]; associations: Associations }) {
bg={color}
mr={2}
display="block"
flexShrink='0'
/>
<Link to={`/~groups${g}`}>
<Text>{assoc?.metadata?.title}</Text>
<Link style={{ minWidth: 0 }} to={`/~groups${g}`}>
<Text verticalAlign='top' maxWidth='100%' overflow='hidden' display='inline-block' style={{ textOverflow: 'ellipsis', whiteSpace: 'pre' }}>{assoc?.metadata?.title}</Text>
</Link>
</Row>
);