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

Header Variations Broken When Stretched Vertically #93

Open
infered5 opened this issue Apr 5, 2024 · 2 comments
Open

Header Variations Broken When Stretched Vertically #93

infered5 opened this issue Apr 5, 2024 · 2 comments

Comments

@infered5
Copy link

infered5 commented Apr 5, 2024

If you were to CSS your way into stretching any of the alternate Header classes (header-open, header-right and header-contained) vertically, an additional colored bar appears below the header, below where the text happens.

The easiest way to show this is to use Layout Card, which helps tremendously with card placement and is often used.

Also occurs when using Panel layout, stretching the card to fill the bounds of the screen. This may accidentally happen when using a Grid or Vertical Stack card using a Panel layout on your view.

Shown is the stretched horizontally (and, importantly, vertically) formatting of the normal Header class:

image

Header-open:

image

Header-Contained:

image

Header-Right:

image

Pictured is header-right, under a Panel view. This also happens with the other subtypes.
image

Curiously, does not happen with the standard header class.

image

Font size does affect it, but never makes it go away fully.
image

@infered5
Copy link
Author

infered5 commented Apr 7, 2024

#95

PR created for this issue.

@lefty1687
Copy link

lefty1687 commented May 31, 2024

this worked for me:

Add the following under the ha-card.header-right > ha-markdown.no-header:

     ha-card.header-right > ha-markdown {
        border-radius: 0 20px 0 0;
        height: 100%;
        display: flex;
        align-items: flex-end;
      }

for header-contained, change ha-card.header-contained > ha-markdown:

     ha-card.header-contained > ha-markdown {
        border-radius: 20px 20px 0 0;
        height: 100%;
        display: flex;
        align-items: flex-end;
      }

and for header-open add this:

      ha-card.header-open > ha-markdown {
        border-radius: 0px 0px 0px 0px;
        height: 100%;
        display: flex;
        align-items: flex-end;
      }

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

2 participants