From 5a96dd2341039c1db9bf1ad1814b3e29e7fa0351 Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Wed, 15 Apr 2026 13:02:17 +0330 Subject: [PATCH] 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. --- src/components/Layouts/header/notification/index.tsx | 10 +++++----- src/components/Layouts/sidebar/index.tsx | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/Layouts/header/notification/index.tsx b/src/components/Layouts/header/notification/index.tsx index 82b9163..c98033a 100644 --- a/src/components/Layouts/header/notification/index.tsx +++ b/src/components/Layouts/header/notification/index.tsx @@ -8,7 +8,7 @@ import { import Modal from "@/components/ui/modal"; import { useMarkNotificationAsSeen } from "@/hooks/queries/useNotificationQueries"; import { useIsMobile } from "@/hooks/use-mobile"; -import { TNotificationDetailsResponse } from "@/lib/api/types/NotificationHistory"; // Import the type +import { TNotificationDetailsResponse } from "@/lib/api/types/NotificationHistory"; import { cn } from "@/lib/utils"; import Link from "next/link"; import { useState } from "react"; @@ -68,13 +68,13 @@ export function Notification() { -
- +
+ Notifications - + {unreadNotificationCount} new
diff --git a/src/components/Layouts/sidebar/index.tsx b/src/components/Layouts/sidebar/index.tsx index 553b01a..578a5f3 100644 --- a/src/components/Layouts/sidebar/index.tsx +++ b/src/components/Layouts/sidebar/index.tsx @@ -60,7 +60,9 @@ export function Sidebar() {