Skip to content

Commit

Permalink
fix: show notification count at the top in collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
iamejaaz committed Nov 17, 2024
1 parent dfb22c8 commit b6028e7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/src/components/SidebarLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
>
<div
class="flex items-center w-full duration-300 ease-in-out group"
:class="isCollapsed ? 'p-1' : 'px-2 py-1'"
:class="isCollapsed ? 'p-1 relative' : 'px-2 py-1'"
>
<Tooltip :text="link.label" placement="right">
<slot name="icon">
Expand All @@ -29,7 +29,15 @@
>
{{ __(link.label) }}
</span>
<span v-if="link.count" class="!ml-auto block text-xs text-gray-600">
<span
v-if="link.count"
class="!ml-auto block text-xs text-gray-600"
:class="
isCollapsed && link.count > 9
? 'absolute top-[2px] right-0 bg-white'
: ''
"
>
{{ link.count }}
</span>
<div
Expand Down

0 comments on commit b6028e7

Please sign in to comment.