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

Odd behaviour when usied in narrow (phone) screen #4

Open
sesquipedality opened this issue Apr 1, 2022 · 3 comments
Open

Odd behaviour when usied in narrow (phone) screen #4

sesquipedality opened this issue Apr 1, 2022 · 3 comments

Comments

@sesquipedality
Copy link

I would like the header cards to hide themselves when there is not enough vertical room to show them. Unfortunately instead they shrink the menu tabs so that they are not visible. Is there any way to have a configuration option that gives preference to the view tabs in constrained situations.

@FsxShader2012
Copy link

I would be very interested in this as well.

@FsxShader2012
Copy link

I found a way to circumvent this behaviour.
Take a look at the State-Switch and Blank Cards.
In this example I used the browser width to determine if header cards should be shown:

header_cards:
  cards:
    - type: custom:state-switch
      entity: mediaquery
      states:
        '(min-width: 1500px)':
          type: markdown
          content: "Test"
        all:
          type: custom:blank-card      #Blank-Card because you need to define a type

You could also use Browser Mod to decide on a device basis.

@erkr
Copy link

erkr commented Jun 22, 2024

I found a way to circumvent this behaviour.

Thanks, I used the custom:state-switch with the user entity option. Works great!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants