Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Sidebar miximize when refresh page


Hello within my react App using metronic i can collapse the main sidebar nav and this will collapse okay. When I refresh page the navbar defaults back to the maximised display. Could you tell me why this is happening or how to resolve the issue? I would like the navbar to stay minimised when refresh page If i have set the navbar to minimise.


Text formatting options
Submit

Replies (1)


Hi,

Thank you for reaching out to us.

To make the sidebar minimized by default you can follow the steps below:

  1. Open src/_metronic/layout/core/_LayoutConfig.ts.
  2. Change property app.sidebar.default.minimize to true
  3. Clear localStorage in your browser and hard refresh the page.



Regards,
Lauris Stepanovs,
Keenthemes Support Team
Text formatting options
Submit
Text formatting options
Submit