From a794de9b6f45cd485c97dec06b3b7d48d0dd2861 Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Wed, 25 Feb 2026 10:03:26 +0530 Subject: [PATCH] mgr/dashboard: Fix breaking layout in overview page Issue: One opening the notification panel overview page breaks. Reason: Due to the css grid used in notification panel and flex grid in overview page. Fix: Removed css grid from the notification header Signed-off-by: Afreen Misbah (cherry picked from commit cc1923d57943c1a22863ee2d464feb276806693f) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.html src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.scss --- .../notification-header.component.html | 23 +++++++++++++++ .../notification-header.component.scss | 28 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.html create mode 100644 src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.scss diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.html b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.html new file mode 100644 index 000000000000..2906f9bba1c1 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.html @@ -0,0 +1,23 @@ +
+
+

Tasks and Notifications

+ +
+ + +
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.scss new file mode 100644 index 000000000000..fef7cb5f3f6d --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-header/notification-header.component.scss @@ -0,0 +1,28 @@ +@use '@carbon/styles/scss/spacing'; + +.notification-header { + position: sticky; + top: 0; + z-index: 2; + padding: spacing.$spacing-03 spacing.$spacing-05; + background-color: var(--cds-layer-01); + border-block-end: 1px solid var(--cds-border-subtle-01); + inset-block-start: 0; + height: var(--header-height); + + &__title { + margin-top: 0.4rem; + } + + &__dismiss-btn { + color: var(--cds-text-primary); + padding-top: 0; + padding-left: spacing.$spacing-06; + } + + &__heading-and-button { + display: flex; + flex-direction: row; + justify-content: space-between; + } +} -- 2.47.3