Files
MeshCentral/views
TheDevRyan 53f108fe7b Refactor: Rebuilt Masthead User Dropdown for Cleaner Structure and Modern Behavior (#7398)
* Update default3.handlebars

* Update default3.handlebars

* Update style-bootstrap.css

* Update translate.json

* Improve user dropdown menu visibility and control

Refactored user dropdown menu items in default3.handlebars to add unique IDs and a new 'mobile-menu-item' class for better visibility control. Added logic to conditionally show/hide menu items based on UI mode and feature flags, including forced Modern UI and night mode. Updated CSS to remove unnecessary border styling. updated webserver.js to set a feature flag when Modern UI is forced.

* Adjust desktop breakpoint and submenu animation logic

Changed desktop breakpoint from 1025px to 769px in both CSS and JS to better align with responsive design. Submenu animation now respects the user's reduced motion preference, disabling transitions when 'prefers-reduced-motion' is enabled.

* Improve masthead layout and text overflow handling

* Refine mobile menu item visibility logic

Updated the logic for showing/hiding mobile menu items based on uiMode. Now, only menu items without 'users-menu-item', 'files-menu-item', or 'server-menu-item' classes are shown when uiMode is not 2 or 3.

* Update style-bootstrap.css

* Comment out toggleModernUIMenuItem line

Comment out the toggleModernUIMenuItem visibility check.

* Update translate.json
2025-11-17 11:46:46 +00:00
..