jcwillox / lovelace-paper-buttons-row

Adds highly configurable buttons that use actions and per-state styling.
MIT License
306 stars 10 forks source link

Extend paper buttons row alignment issue on 2022.6b0 #90

Closed krazos closed 2 years ago

krazos commented 2 years ago

After upgrading to 2022.6b0, buttons added to an entities row via extend_paper_buttons_row are not aligned properly for sensor entities, pushing the state of the sensor entity to the next line:

Screenshot 2022-05-26 6 56 35 AM

type: entity-filter
entities:
  - entity: sensor.curbside_collection
    state_filter:
      - operator: '=='
        value: today
      - operator: '=='
        value: tomorrow
    extend_paper_buttons_row:
      position: center
      base_config:
        styles:
          button:
            margin-right: 8px
      buttons:
        - entity: sensor.curbside_collection
          icon: mdi:check-circle
          name: false
          tap_action:
            action: call-service
            service: garbage_collection.collect_garbage
            service_data:
              entity_id: sensor.curbside_collection

For what it's worth, substantially similar code still works properly for switch entities with a toggle switch:

Screenshot 2022-05-26 7 09 07 AM

jcwillox commented 2 years ago

Thanks for noticing this early, I've released 1.0.1 which should fix this.

krazos commented 2 years ago

Many thanks for the quick fix. That appears to have done the trick!