Disable MenuBar responsiveness

UI Components for Vue
Post Reply
leojones
Posts: 1
Joined: 25 May 2022, 14:00

25 May 2022, 14:04

Is there a way to disable the MenuBar component's responsiveness so that it doesn't display a hamburger menu when the screen shrinks?

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

14 Oct 2022, 21:21

This is actually set in the `theme.css` and not the component itself. If you want to turn it off just add this CSS to your application.

Code: Select all

@media screen and (max-width: 960px) {
     .p-menubar .p-menubar-button {
         display: none;
    }
     .p-menubar {
         position: inherit;
    }
     .p-menubar .p-menubar-root-list {
         display: flex;
         align-items: center;
         position: unset;
         padding: unset;
         background: inherit;
         border: unset;
         box-shadow: unset;
         width: unset;
    }
}
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests