]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: scroll up by default when clicking on side navigation 62683/head
authorAlexander Gomez <alexsgdc@gmail.com>
Fri, 4 Apr 2025 17:03:59 +0000 (12:03 -0500)
committerAlexander Gomez <alexsgdc@gmail.com>
Tue, 20 May 2025 16:44:20 +0000 (11:44 -0500)
commit64db0454afb0103930a04d6baa6f08168cca2bf9
treec182f127b3b0cbf728045b3a2a5065fa970fb0aa
parent8ce2e9ebacf70a62c7f58f3cb447e889c65fbd18
mgr/dashboard: scroll up by default when clicking on side navigation

Ensures the side menu scrolls into view when an item (e.g., "Administration") is clicked and goes out of the screen view. This is done with an onClick event in cds-sidenav tag due to limitations in the Carbon Design System that prevent direct access to `onclick` events.

Fixes: https://tracker.ceph.com/issues/66309
Signed-off-by: Alexander Gomez <alexsgdc@gmail.com>
Update src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts

Co-authored-by: afreen23 <afreen23.git@gmail.com>
Signed-off-by: alexjr2001 <63054183+alexjr2001@users.noreply.github.com>
mgr/dashboard: apply lint fixes
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.ts