Navbar autohiding configuration in Persona
-
A user inquired about setting up navbar autohiding on non-mobile resolutions, so I've added a client-side hook to allow for configuration:
https://github.com/NodeBB/nodebb-theme-persona/issues/541
v11.3.37 of Persona will fire off a client-side hook that you can subscribe to and change the values that govern whether the navbar autohides. Just add this to your custom javascript field in the ACP:
require(['hooks'], (hooks) => { hooks.on('filter:persona.configureNavbarHiding', ({ resizeEnvs }) => { resizeEnvs.push('md', 'lg'); return { resizeEnvs }; }); });
-
@julian Hi Julian, After some thought I guess I would like to go even further and am wondering how to "pin" the navbar, as well as the topic bar so that they scroll completely normally like the rest of the page. Would this be doable? Thank you in advance. for your advice.
Copyright © 2024 NodeBB | Contributors