Skip to content

Commit 0da72ec

Browse files
authored
Merge pull request #2115 from The-Commit-Company/fix-unread-badge-workspace
fix: workspace unread badge overflow
2 parents 4608008 + a94bca9 commit 0da72ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/layout/Sidebar/WorkspacesSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ const WorkspaceItem = ({ workspace }: { workspace: WorkspaceFields & { unread_co
102102
</Tooltip>
103103
</Flex>
104104
{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>
105+
<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'>
106+
<Text as='span' size='1' weight='medium'>{workspace.unread_count > 99 ? '99+' : workspace.unread_count}</Text>
107107
</Box>
108108
}
109109
</HStack>

0 commit comments

Comments
 (0)