tungmeister / hass-blind-card

Blind card for Home Assistant Lovelace UI
Apache License 2.0
32 stars 13 forks source link

[Feature request] Buttons above or below the graphics #6

Open mailwash opened 2 years ago

mailwash commented 2 years ago

It would be nice to have a possibility to show buttons in bottom and top position.

luizcorreia commented 2 years ago

You can try using card-mod to customize the layout. This worked for me:

type: custom:blind-card
entities:
  - entity: cover.bedroom_blinds
    name: Master Bedroom
    buttons_position: left
    blind_color: '#333'
card_mod:
  style: |
    ha-card .sc-blind-middle {
      width: 100%;
      flex-direction: column-reverse !important;
    }
    ha-card .sc-blind-button + br {
      display: none;
    }