From 86e1f2d8dd4b3ad9db0bf33ab1ab6e575b84bebf Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Fri, 28 Feb 2025 22:35:31 -0800 Subject: [PATCH] fix(ui): close button improvement on notifications --- .../notifications/notifications.tsx | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/app/w/components/notifications/notifications.tsx b/app/w/components/notifications/notifications.tsx index c707cc75ec..f4675fe0a4 100644 --- a/app/w/components/notifications/notifications.tsx +++ b/app/w/components/notifications/notifications.tsx @@ -227,14 +227,14 @@ function NotificationAlert({ > {type === 'api' ? ( // Special layout for API notifications with equal spacing -
+
{/* Left icon */}
{/* Content area with equal margins */} -
+
API @@ -308,19 +308,20 @@ function NotificationAlert({
- {/* Close button on the right, aligned with header */} -
- {options?.isPersistent && ( + {/* Absolute positioned close button in the top right */} + {options?.isPersistent && ( +
- )} -
+
+ )}
) : ( // Original layout for error and console notifications @@ -344,11 +345,12 @@ function NotificationAlert({ {options?.isPersistent && ( )}