Skip to content

Commit

Permalink
feat: Add scrollbar for notifications dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
abugraokkali committed Feb 6, 2025
1 parent 071f60f commit c1d739a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/navigation/notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "../ui/dropdown-menu"
import { ScrollArea } from "../ui/scroll-area"
import StatusBadge, { Status } from "../ui/status-badge"
import { useNotification } from "../ui/use-notification"

Expand Down Expand Up @@ -159,7 +160,7 @@ export default function Notifications() {
{t("notifications.mark_all_as_read")}
</Button>
</div>
<div className="flex flex-col gap-3 p-2">
<ScrollArea type="always" className="flex flex-col gap-3 p-2 h-[350px]">
{notifications.map((notification) => (
<Link
href={`/notifications#notification-${notification.notification_id}`}
Expand Down Expand Up @@ -199,7 +200,7 @@ export default function Notifications() {
</div>
</Link>
))}
</div>
</ScrollArea>

{notifications.length === 0 && (
<>
Expand Down

0 comments on commit c1d739a

Please sign in to comment.