Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide top bar and menu #1

Open
bemble opened this issue Feb 8, 2022 · 8 comments
Open

Hide top bar and menu #1

bemble opened this issue Feb 8, 2022 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bemble
Copy link
Collaborator

bemble commented Feb 8, 2022

It would be nice to be able to hide the top bar and the menu.

@bemble bemble added the enhancement New feature or request label Feb 8, 2022
@piitaya piitaya added the help wanted Extra attention is needed label Feb 8, 2022
@piitaya
Copy link
Owner

piitaya commented Feb 8, 2022

Yep, but there is the edit button in the top bar. We need to find a solution for this :

image

@cyrilphoenix71
Copy link

Yep, but there is the edit button in the top bar. We need to find a solution for this :

image

May be the better solution is to transforme header to footer ?

@piitaya
Copy link
Owner

piitaya commented Feb 14, 2022

There is currently no solution for this except using card-mod. It's a "hacky" thing and I don't think it can included in Mushroom.

@LRvdLinden
Copy link

you can add it to the theme file:

  card-mod-view-yaml: |
    "*:first-child$": |
      #columns .column > * {
        padding-left: 5px;
        padding-right: 5px;
        padding-bottom: 5px;
      }

  # Move navbar
  card-mod-root-yaml: |
    ha-tabs$: |
      #tabsContent {
            width: 97%;
      }
    .: |
      @media (orientation: portrait) {
        a.menu-link[target="_blank"], ha-button-menu, ha-menu-button, [main-title] {
          display: none !important;
        }
        app-toolbar {
          padding-right: 0px;
          padding-left: 0px;
        }
      }
      ha-app-layout{
        transform: initial;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
      }
      app-header {
        top: auto;
        bottom: 0;
        box-shadow: var(--footer-shadow);
        position: fixed;
      }
      app-toolbar {
        transform: none;
        padding-top:10px !important;
        padding-bottom: calc(env(safe-area-inset-bottom) + 2px);
        height: 100px !important;
      }
      #view {
        margin-top: calc(-71px + env(safe-area-inset-top)) !important;
        width: 100%;
        min-height: 100%;
        height: auto;
        padding-bottom: calc(env(safe-area-inset-bottom) + 50px);
      }
      ha-tabs {
        --paper-tabs-selection-bar-color: var(--header-tab-indicator-color);
        --mdc-icon-size: 26px;
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
      }
      paper-tab[aria-selected=true] {
        color: var(--header-active-tab-color);
        background-color: var(--header-active-tab-bg-color)
      }
      paper-tab {
        color: var(--header-all-tabs-color);
        border-radius: 25px;
        height:50px;
        /*width: calc(100% / 4);*/
        padding-left: 20px;
        padding-right: 20px;
      }

@cyrilphoenix71
Copy link

So may be mushroom theme can use that?

@piitaya
Copy link
Owner

piitaya commented Feb 20, 2022

@cyrilphoenix71 I don't think it's a good thing to have card mod as a dependency.
Thank you @LRvdLinden for sharing this ! 😊 It can help people who want bottom bar.

@hugobloem
Copy link

You can use kiosk mode from HACS. I then defined a input_boolean so you can toggle the header and sidebar on and off. That way you can still easily get it to edit your dashboard.

https://github.com/maykar/kiosk-mode

@acesyde
Copy link

acesyde commented Apr 22, 2022

You can use kiosk mode as @hugobloem said

kiosk_mode:
  mobile_settings:
    hide_header: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants