From 53339e33702903b6158abbd4ecdcfe8d3df6d550 Mon Sep 17 00:00:00 2001 From: CatsJuice Date: Fri, 6 Dec 2024 01:56:01 +0000 Subject: [PATCH] fix(component): toast shouldn't cover whole header (#9032) --- packages/frontend/component/package.json | 2 +- .../src/ui/notification/mobile/notification-center.tsx | 3 +++ .../component/src/ui/notification/mobile/styles.css.ts | 10 +++++++++- yarn.lock | 4 ++-- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/frontend/component/package.json b/packages/frontend/component/package.json index cb2327a0db..921753f2f0 100644 --- a/packages/frontend/component/package.json +++ b/packages/frontend/component/package.json @@ -58,7 +58,7 @@ "react-paginate": "^8.2.0", "react-router-dom": "^6.22.3", "react-transition-state": "^2.1.1", - "sonner": "^1.4.41", + "sonner": "^1.7.0", "swr": "^2.2.5", "zod": "^3.22.4" }, diff --git a/packages/frontend/component/src/ui/notification/mobile/notification-center.tsx b/packages/frontend/component/src/ui/notification/mobile/notification-center.tsx index bf8a583e71..ce3e619be2 100644 --- a/packages/frontend/component/src/ui/notification/mobile/notification-center.tsx +++ b/packages/frontend/component/src/ui/notification/mobile/notification-center.tsx @@ -1,8 +1,11 @@ import { Toaster } from 'sonner'; +import { sonner } from './styles.css'; + export function MobileNotificationCenter() { return (