nicufarmache / lovelace-big-slider-card

A card with a big slider for light entities in Home Assistant
MIT License
77 stars 11 forks source link

Support for Section view #58

Closed francesconazzaro closed 4 months ago

francesconazzaro commented 5 months ago

Home Assistant has recently introduced Sections. Cards in a section can fill 1 or 2 columns. big-slider-card always fills 2 columns.

It would be great if the size of the big-slider-card could be customisable.

Here is a screenshot of the current behaviour

image

MangoScango commented 4 months ago

It's a little janky, but I was able to do force this on 2024.07 with the new card resizing feature, by appending the following:

layout_options:
  grid_columns: 2
  grid_rows: 1
francesconazzaro commented 4 months ago

Thank you! This solution works. I'll close the issue

xvlw commented 4 months ago

Another way I made this work was to add the card to a horizontal stack and then modify the size through the new card resizing feature to half the width.

I think the card loses the ability to be modified directly in the UI via the new card resizing features due to it not having access to the visual editor.

I see PR 54 was added in February, hopefully this eventually allows the card to take advantage of the new HA UI settings they implemented.

https://github.com/nicufarmache/lovelace-big-slider-card/pull/54