fix design bug footer cart + header notif
This commit is contained in:
@@ -33,14 +33,15 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) {
|
|||||||
}, [items]);
|
}, [items]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed bottom-0 left-0 w-full bg-transparent pointer-events-none">
|
<div className="fixed bottom-0 left-0 w-full bg-transparent pointer-events-none overflow-visible">
|
||||||
<div className="max-w-md mx-auto w-full aspect-[436/104] relative z-30">
|
<div className="max-w-md mx-auto w-full aspect-[436/104] relative z-30 overflow-visible">
|
||||||
<svg
|
<svg
|
||||||
viewBox="0 0 436 104"
|
viewBox="0 0 436 104"
|
||||||
fill="none"
|
fill="none"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
className="w-full h-full block"
|
className="w-full h-full block"
|
||||||
preserveAspectRatio="xMidYMid meet"
|
preserveAspectRatio="xMidYMid meet"
|
||||||
|
style={{ overflow: 'visible' }}
|
||||||
>
|
>
|
||||||
<g filter="url(#filter0_d_9095_18036)" className='fill-container'>
|
<g filter="url(#filter0_d_9095_18036)" className='fill-container'>
|
||||||
<path
|
<path
|
||||||
@@ -50,17 +51,18 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) {
|
|||||||
</g>
|
</g>
|
||||||
|
|
||||||
{/* 🔽 Your HTML content inside SVG */}
|
{/* 🔽 Your HTML content inside SVG */}
|
||||||
<foreignObject x="0" y="10" width="100%" height="80">
|
<foreignObject x="0" y="0" width="100%" height="100%" style={{ overflow: 'visible' }}>
|
||||||
<nav
|
<nav
|
||||||
className="h-full px-2 grid grid-cols-5 gap-x-2 text-[10px] items-end"
|
className="h-full px-2 grid grid-cols-5 gap-x-2 text-[10px] items-end relative pt-[10px] pb-[14px]"
|
||||||
|
style={{ overflow: 'visible' }}
|
||||||
>
|
>
|
||||||
<BottomNavLink
|
<BottomNavLink
|
||||||
href={`/${name}/cart`}
|
href={`/${name}/cart`}
|
||||||
icon={
|
icon={
|
||||||
<div className="relative">
|
<div className="relative" style={{ overflow: 'visible' }}>
|
||||||
<BagIcon width={20} height={20} />
|
<BagIcon width={20} height={20} />
|
||||||
{cartItemsCount > 0 && (
|
{cartItemsCount > 0 && (
|
||||||
<span className="absolute -top-2 -right-2 flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-medium text-white bg-primary rounded-full">
|
<span className="absolute -top-2 -right-2 flex items-center justify-center min-w-[18px] h-[18px] px-1 text-[10px] font-medium text-white bg-primary rounded-full z-10 pointer-events-none">
|
||||||
{cartItemsCount > 99 ? '99+' : cartItemsCount}
|
{cartItemsCount > 99 ? '99+' : cartItemsCount}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ function TopBar({ profileDropState, toggleProfileDropState, toggleMenuState }: P
|
|||||||
href={`/${name}/notifications`}
|
href={`/${name}/notifications`}
|
||||||
className='relative'>
|
className='relative'>
|
||||||
<NotificationBellIcon className='size-4.5 text-icon-active dark:text-foreground' />
|
<NotificationBellIcon className='size-4.5 text-icon-active dark:text-foreground' />
|
||||||
<span className='absolute -right-1 -top-1 bg-red-500 size-3 rounded-full text-[8px] text-container'>
|
<span className='absolute -right-1 -top-1 flex items-center justify-center bg-red-500 size-3 rounded-full text-[8px] text-container'>
|
||||||
<div className='mt-0.25 place-self-center'>2</div>
|
<div className='mt-0.25 place-self-center'>2</div>
|
||||||
</span>
|
</span>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export function ReactQueryProvider({ children }: { children: React.ReactNode })
|
|||||||
return (
|
return (
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
{children}
|
{children}
|
||||||
<ReactQueryDevtools initialIsOpen={false} />
|
{/* <ReactQueryDevtools initialIsOpen={false} /> */}
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user