From: Afreen Misbah Date: Thu, 18 Dec 2025 21:04:26 +0000 (+0530) Subject: mgr/dashboard: Added cdsGrid to header X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3eeb58e2584f6b9ab90da2a65f4a5e2a47f8351d;p=ceph.git mgr/dashboard: Added cdsGrid to header Signed-off-by: Afreen Misbah --- 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 70e60684cd219..2c79c71aa237f 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 @@ -86,7 +86,7 @@ import { NotificationFooterComponent } from './notification-panel/notification-f PlaceholderModule, TagModule, 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 2864776c94c6f..3759bd2a45ec7 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 0038d3c8ae8b4..89267f69081bf 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 c8ab9aa30cbbb..d903bf860d62b 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; - } - } - } - } }