mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
interface: truncate group title
This commit is contained in:
parent
0f05d3c953
commit
f508cd923e
@ -167,11 +167,9 @@ export function GroupSwitcher(props: {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Row flexGrow={1} alignItems="center" width='100%' minWidth='0' flexShrink={0}>
|
<Row flexGrow={1} alignItems="center" width='100%' minWidth='0' flexShrink={0}>
|
||||||
{ metadata && <MetadataIcon mr="2" border="1" borderColor="lightGray" borderRadius="1" metadata={metadata} height="24px" width="24px" /> }
|
{ metadata && <MetadataIcon flexShrink={0} mr="2" border="1" borderColor="lightGray" borderRadius="1" metadata={metadata} height="24px" width="24px" /> }
|
||||||
<Row justifyContent="space-between" mr={1} flexShrink={0} flexGrow={1} minWidth='0'>
|
<Text flexShrink={1} lineHeight="1.1" fontSize='2' fontWeight="700" overflow='hidden' display='inline-block' flexShrink='1' style={{ textOverflow: 'ellipsis', whiteSpace: 'pre' }}>{title}</Text>
|
||||||
<Text lineHeight="1.1" fontSize='2' fontWeight="700" overflow='hidden' display='inline-block' flexShrink='1' style={{ textOverflow: 'ellipsis', whiteSpace: 'pre' }}>{title}</Text>
|
|
||||||
</Row>
|
</Row>
|
||||||
</Row>
|
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
<Row pr='3' verticalAlign="middle">
|
<Row pr='3' verticalAlign="middle">
|
||||||
{(workspace.type === 'group') && (
|
{(workspace.type === 'group') && (
|
||||||
|
@ -48,7 +48,9 @@ export function Skeleton(props: SkeletonProps) {
|
|||||||
return (
|
return (
|
||||||
<Body
|
<Body
|
||||||
display="grid"
|
display="grid"
|
||||||
gridTemplateColumns={['100%', '250px 1fr']}
|
gridTemplateColumns={
|
||||||
|
['100%', 'minmax(150px, 1fr) 3fr', 'minmax(250px, 1fr) 4fr']
|
||||||
|
}
|
||||||
gridTemplateRows="100%"
|
gridTemplateRows="100%"
|
||||||
>
|
>
|
||||||
<Sidebar
|
<Sidebar
|
||||||
|
Loading…
Reference in New Issue
Block a user