Files
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
..
2022-06-29 12:16:40 -07:00

You can help translate MeshCentral into other languages pretty easily. In this folder is a
"translate.json" file containing the english strings and translated strings in other languages.

Download the following Windows tool to open the "translate.json" file and edit strings.

  https://meshcentral.com/tools/ResourceTranslator.zip

Once done, save the file back and run this:

  node translate.js translateall

This will re-generate all of the translated web pages with the new strings. You can then do a
GitHub pull request on the MeshCentral GitHub to update the "translate.json" file, or send the
file to "ylianst@gmail.com".