home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.08k stars 2.79k forks source link

Horizontal stack with 2 horizontal stacks: a height glitch #18972

Open ildar170975 opened 11 months ago

ildar170975 commented 11 months ago

Checklist

Describe the issue you are experiencing

Consider this card:

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: horizontal-stack
        title: title
        cards:
          - show_name: true
            show_icon: true
            type: button
          - type: button
      - type: horizontal-stack
        title: title
        cards:
          - type: button
          - type: button
  - type: horizontal-stack
    title: stack title
    cards:
      - type: button
      - type: button
  - type: horizontal-stack
    title: stack title
    cards:
      - type: button
      - type: button

изображение

The upper horiz stack contains two horiz stacks. Seems that inner stacks make buttons of wrong height. As a result - the stack title text came under the upper stack:

изображение

A correct look:

изображение

Describe the behavior you expected

Using horiz stacks inside a horz stack does not cause glitches.

Steps to reproduce the issue

as above

What version of Home Assistant Core has the issue?

2023.12.0

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Chrome 119.0.6045.200

Which operating system are you using to run this browser?

Win10x64

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

vwtuner commented 10 months ago

 IMG_5414

Ich habe ein ähnliches Problem

github-actions[bot] commented 7 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ildar170975 commented 7 months ago

Default icons are not shown in 2024.4.3, so the test code is:

type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: horizontal-stack
        title: title
        cards:
          - show_name: true
            show_icon: true
            type: button
            icon: mdi:car
          - type: button
            icon: mdi:car
      - type: horizontal-stack
        title: title
        cards:
          - type: button
            icon: mdi:car
          - type: button
            icon: mdi:car
  - type: horizontal-stack
    title: stack title
    cards:
      - type: button
        icon: mdi:car
      - type: button
        icon: mdi:car
  - type: horizontal-stack
    title: stack title
    cards:
      - type: button
        icon: mdi:car
      - type: button
        icon: mdi:car

Editor: image

Edit mode: image

Non-edit mode: image

github-actions[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ildar170975 commented 3 months ago

Up

github-actions[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ildar170975 commented 3 weeks ago

Up