thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.05k stars 125 forks source link

visible state-switch card plus layout-card view with height in view yaml causing 8px x-overflow in mobile view (div=column) #245

Open jack5mikemotown opened 1 year ago

jack5mikemotown commented 1 year ago

My Home Assistant version: 2022.XX.X

Layout-card version (FROM BROWSER CONSOLE):

What I am doing: Trying to have a 1 column mobile layout with state-switch cards. I am aware of how particular of an issue this is. i have height: auto to fix a similar, already reported but regarding y overflow.

It is also worth noting that changing height: 100% to height: auto in the vertical-layout element fixes the height scroll bar without introducing the width scrollbar caused by adding a height parameter to the view yaml

What I expected to happen: The layout does not let me scroll left or right

What happened instead: The layout will scroll right, revealing an additional 8 pixels of nothing Minimal steps to reproduce:

# The least ammount of code possible to reproduce my error
   - path: test
    icon: ''
    type: custom:vertical-layout
    layout:
      height: auto
    badges: []
    cards:
      - type: custom:state-switch
        entity: mediaquery
        states:
          '(max-width: 500px)':
            type: markdown
            content: .
# End of code

Error messages from the browser console: none

By putting an X in the boxes ([X]) below, I indicate that I: