From 967682c449c98e9495cfc503b8292bf334b50684 Mon Sep 17 00:00:00 2001 From: mikigoalie Date: Sat, 26 Jul 2025 16:07:52 +0200 Subject: [PATCH] fix(web/notifications): bottom center position (#33) --- web/src/features/dev/debug/notification.ts | 1 + web/src/features/notifications/NotificationWrapper.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/features/dev/debug/notification.ts b/web/src/features/dev/debug/notification.ts index ea3f55d..3545ddb 100644 --- a/web/src/features/dev/debug/notification.ts +++ b/web/src/features/dev/debug/notification.ts @@ -26,6 +26,7 @@ export const debugCustomNotification = () => { title: 'Error', description: 'Notification description', type: 'error', + position: "bottom" }, }, ]); diff --git a/web/src/features/notifications/NotificationWrapper.tsx b/web/src/features/notifications/NotificationWrapper.tsx index de8af54..3139aee 100644 --- a/web/src/features/notifications/NotificationWrapper.tsx +++ b/web/src/features/notifications/NotificationWrapper.tsx @@ -61,7 +61,7 @@ const getAnimation = (visible: boolean, position: string) => { animation = { from: 'X(0px)', to: 'X(-100%)' }; } else if (position === 'top-center') { animation = { from: 'Y(0px)', to: 'Y(-100%)' }; - } else if (position === 'bottom') { + } else if (position === 'bottom-center') { animation = { from: 'Y(0px)', to: 'Y(100%)' }; } else { animation = { from: 'X(0px)', to: 'X(100%)' };