From 5e9336a9aa84de568bb78d25c7b689a5ba02e21b Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Fri, 19 Dec 2025 02:34:26 +0530 Subject: [PATCH] mgr/dashboard: Added cdsGrid to header Signed-off-by: Afreen Misbah --- .../app/core/navigation/navigation.module.ts | 2 +- .../navigation/navigation.component.ts | 2 +- .../notification-header.component.html | 45 ++++++++++------- .../notification-header.component.scss | 50 +++---------------- 4 files changed, 38 insertions(+), 61 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts index 9b642e8f35f..013fc5ca4c9 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts @@ -88,7 +88,7 @@ import { NotificationFooterComponent } from './notification-panel/notification-f TagModule, ProgressBarModule, StructuredListModule, - SearchModule + SearchModule, ], declarations: [ AboutComponent, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts index 2864776c94c..3759bd2a45e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts @@ -33,7 +33,7 @@ export class NavigationComponent implements OnInit, OnDestroy { clusterTokenStatus: object = {}; summaryData: any; - isNotifPanelOpen = false; + isNotifPanelOpen = true; showMenuSidebar = true; simplebar = { 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 index 0038d3c8ae8..89267f69081 100644 --- 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 @@ -1,21 +1,32 @@ -
-
-
- Tasks and Notifications +
+
+
+
+ Tasks and Notifications + +
- - -
- -
-
+
\ No newline at end of file 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 index c8ab9aa30cb..d903bf860d6 100644 --- 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 @@ -3,55 +3,21 @@ @use '@carbon/styles/scss/theme'; .notification-header { - display: flex; - flex-direction: column; - padding: spacing.$spacing-04; - border-bottom: 1px solid theme.$border-subtle-01; - background-color: theme.$layer-01; - flex-shrink: 0; + position: sticky; + z-index: 2; + padding: spacing.$spacing-03 spacing.$spacing-05; + background-color: theme.$layer-01; + border-block-end: 1px solid theme.$border-subtle-01; + inset-block-start: 0; - &__top { - display: flex; - justify-content: space-between; - align-items: center; - width: 100%; - margin-bottom: spacing.$spacing-03; - } &__title { - h4 { - @include type.type-style('heading-compact-01'); - - color: theme.$text-primary; - margin: 0; - } + @include type.type-style('heading-compact-01'); + margin-top: 0.4rem; } &__dismiss-btn { color: theme.$text-primary; - - &:hover { - color: theme.$link-primary; - } } - &__toggle { - cds-toggle { - margin: 0; - - ::ng-deep { - .cds--toggle__label-text { - color: theme.$text-primary; - } - - .cds--toggle__label { - color: theme.$text-primary; - } - - .cds--toggle__text { - color: theme.$text-primary; - } - } - } - } } -- 2.47.3