qgis / qwc2-demo-app

QWC2 demo application
Other
240 stars 149 forks source link

Hide Menu in TopBar #537

Closed naub1n closed 3 months ago

naub1n commented 3 months ago

Hi,

It's possible to hide Menu in TopBar ?

I try to set MenuItems to null in config.json but doesn't work.

I want to get minimal app with only searchbar et zoom in/out button.

And It's possible to hide logo item ?

Thx !!

manisandro commented 3 months ago

You can omit the AppMenu in appConfig.js here:

    TopBarPlugin: TopBarPlugin({
            AppMenu: AppMenu, // <---
            Search: SearchBox(SearchProviders),
            Toolbar: Toolbar,
            FullscreenSwitcher: FullscreenSwitcher
    }),

But you will need to build a custom appbundle.

Alternatively you can hide the element via CSS.

For the logo, either set an empty image, or better hide it via CSS.

naub1n commented 3 months ago

Ok ! I try to do this via CSS. Thx a lot !