From c7840936a3f10b6d993614ab441ad62899e23f11 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Sat, 3 Oct 2026 13:32:47 +0000 Subject: [PATCH] fix: Stack notifications and handle long message text --- shared/packages/web-ui/src/lib/styles.css | 18 ++++++++++++++++-- shared/shared-styles.css | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/shared/packages/web-ui/src/lib/styles.css b/shared/packages/web-ui/src/lib/styles.css index a63b046..cc906e4 100644 --- a/shared/packages/web-ui/src/lib/styles.css +++ b/shared/packages/web-ui/src/lib/styles.css @@ -1050,8 +1050,8 @@ html[data-wide-layout='true'] .sc-header { z-index: 200; top: 1rem; right: 1rem; - display: grid; - gap: 0.625rem; + display: flex; + flex-direction: column; width: min(100% - 2rem, 24rem); pointer-events: none; } @@ -1067,8 +1067,20 @@ html[data-wide-layout='true'] .sc-header { border-radius: var(--sc-radius-md); box-shadow: var(--sc-shadow-lg); pointer-events: auto; + position: relative; + min-width: 0; } +.sc-notification + .sc-notification { + margin-block-start: -0.875rem; +} + +.sc-notification:hover, +.sc-notification:focus-within { + z-index: 1; +} + + .sc-notification-icon { flex: 0 0 auto; margin-top: 0.125rem; @@ -1096,6 +1108,8 @@ html[data-wide-layout='true'] .sc-header { margin: 0; font-size: 0.875rem; line-height: 1.45; + min-width: 0; + overflow-wrap: anywhere; } .sc-notification-close { diff --git a/shared/shared-styles.css b/shared/shared-styles.css index 8730959..9e8d6a9 100644 --- a/shared/shared-styles.css +++ b/shared/shared-styles.css @@ -736,8 +736,8 @@ html[data-wide-layout='true'] .sc-header { z-index: 200; top: 1rem; right: 1rem; - display: grid; - gap: 0.625rem; + display: flex; + flex-direction: column; width: min(100% - 2rem, 24rem); pointer-events: none; } @@ -753,8 +753,20 @@ html[data-wide-layout='true'] .sc-header { border-radius: var(--sc-radius-md); box-shadow: var(--sc-shadow-lg); pointer-events: auto; + position: relative; + min-width: 0; } +.sc-notification + .sc-notification { + margin-block-start: -0.875rem; +} + +.sc-notification:hover, +.sc-notification:focus-within { + z-index: 1; +} + + .sc-notification-icon { flex: 0 0 auto; margin-top: 0.125rem; @@ -782,6 +794,8 @@ html[data-wide-layout='true'] .sc-header { margin: 0; font-size: 0.875rem; line-height: 1.45; + min-width: 0; + overflow-wrap: anywhere; } .sc-notification-close {