chore: fix preferences count bubble size & position

This commit is contained in:
Aman Harwara
2023-09-11 18:36:11 +05:30
parent 51c095efa9
commit 7ca2fa8eab
5 changed files with 36 additions and 21 deletions

View File

@@ -5,6 +5,7 @@ import RoundIconButton from '../Button/RoundIconButton'
import { useResponsiveAppPane } from '../Panes/ResponsivePaneProvider'
import { useState, useEffect } from 'react'
import { useApplication } from '../ApplicationProvider'
import CountBubble from '../Preferences/PreferencesComponents/CountBubble'
/** This button is displayed in the items list header */
export const NavigationMenuButton = () => {
@@ -35,11 +36,7 @@ export const NavigationMenuButton = () => {
label="Open navigation menu"
icon="menu-variant"
/>
{isMobile && bubbleCount && (
<div className="absolute -right-2 -top-2 aspect-square rounded-full border border-info-contrast bg-info px-2 py-0.5 text-[0.65rem] font-bold text-info-contrast">
{bubbleCount}
</div>
)}
{isMobile && bubbleCount && <CountBubble position="right" count={bubbleCount} />}
</div>
)
}