refactor(Notification, Sidebar): enhance styling and responsiveness
- Updated the Notification component's dropdown styling for improved responsiveness and visual consistency. - Adjusted the Sidebar component's z-index handling based on mobile state to ensure proper layering during interactions.
This commit is contained in:
@@ -60,7 +60,9 @@ export function Sidebar() {
|
||||
<aside
|
||||
className={cn(
|
||||
"shrink-0 overflow-hidden border-r border-gray-200 bg-white transition-[width] duration-200 ease-linear dark:border-gray-800 dark:bg-gray-dark",
|
||||
isMobile ? "fixed bottom-0 top-0 z-50" : "sticky top-0 h-screen",
|
||||
isMobile
|
||||
? cn("fixed bottom-0 top-0", isOpen ? "z-50" : "z-20")
|
||||
: "sticky top-0 h-screen",
|
||||
isMobile
|
||||
? isOpen
|
||||
? "w-[290px]"
|
||||
|
||||
Reference in New Issue
Block a user