We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4608008 + a94bca9 commit 0da72ecCopy full SHA for 0da72ec
1 file changed
frontend/src/components/layout/Sidebar/WorkspacesSidebar.tsx
@@ -102,8 +102,8 @@ const WorkspaceItem = ({ workspace }: { workspace: WorkspaceFields & { unread_co
102
</Tooltip>
103
</Flex>
104
{workspace.unread_count > 0 &&
105
- <Box className='rounded-full absolute -right-2 -bottom-1 bg-red-11 dark:bg-red-9 text-white w-4 h-4 flex items-center justify-center'>
106
- <Text as='span' size='1' weight='medium'>{workspace.unread_count}</Text>
+ <Box className='rounded-lg absolute -right-2 -bottom-1 bg-red-11 dark:bg-red-9 text-white min-w-4 p-0.5 h-4 flex items-center justify-center'>
+ <Text as='span' size='1' weight='medium'>{workspace.unread_count > 99 ? '99+' : workspace.unread_count}</Text>
107
</Box>
108
}
109
</HStack>
0 commit comments