thomasloven / lovelace-layout-card

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

Fixed height with scrollbar for vertical-stack in grid-layout #109

Closed noxhirsch closed 3 years ago

noxhirsch commented 3 years ago

Hi, I'm playing with the new layout-card v2.0 at the moment - thank you for that great update!

Is there a way to set a fixed height with overflow-y:scroll for vertical-stack in the grid-layout? At the moment I'm using this 'hack':

type: 'custom:mod-card'
card_mod:
  style: 'ha-card { height: 737px; overflow-y:scroll!important; }'
card:
  type: vertical-stack
  cards:
    - ...
    - ...
    - ...

While this works, there's of course no UI editor available anymore (also you recommend, not using mod-card).

This is my layout-config:

If that's not possible now, I'd like to propose it as a feature request for future version of layout-card.

I'm using it for my tablet dashboards, where I have a static area with the most importand cards and a scrollable area with many less important cards.

thomasloven commented 3 years ago

That sounds like a neat functionality for a new custom card. But it does not belong in layout-card.

obaldius commented 2 years ago

Hey, did you get this figured out?