Skip to content

Commit

Permalink
fix: fix badge in sidebaritem bouncing when hover
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Aug 2, 2023
1 parent bc36cb0 commit c045475
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/web/src/routes/Main/Content/SidebarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ export const SidebarItem: React.FC<SidebarItemProps> = React.memo((props) => {
<Badge count={Number(badge) || 0} />
)}

<div className="text-base p-1 cursor-pointer hidden opacity-70 group-hover:block hover:opacity-100">
{props.action}
</div>
{props.action && (
<div className="text-base p-1 cursor-pointer hidden opacity-70 group-hover:block hover:opacity-100">
{props.action}
</div>
)}
</div>
</Link>
);
Expand Down

0 comments on commit c045475

Please sign in to comment.