custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
364 stars 52 forks source link

Weird border around a bar-card after 2022.11 #152

Open ildar170975 opened 1 year ago

ildar170975 commented 1 year ago

A border is displayed around a bar-card placed inside Entities card after 2022.11:

изображение

type: entities
entities:
  - type: custom:bar-card
    entity: sensor.processor_use
    entity_row: true
  - type: custom:bar-card
    entity: sensor.processor_use
    entity_row: false

This border also conflicts with a default radius for the bar-card: изображение since the --ha-card-border-radius var is undefined by default.

Proposal - do not show a border at all.


Meanwhile this may be fixed by card-mod:

    type: entities
    title: Removing a border
    entities:
      - type: custom:bar-card
        title: default
        entity: sensor.memory_use_percent
      - type: custom:bar-card
        title: card-mod
        entity: sensor.memory_use_percent
        card_mod:
          style: |
            ha-card {
              --ha-card-border-width: 0px;
            }

изображение

SGXander commented 1 year ago

This is likely the result of the material design v3 updates in 2022.11. No border was displayed before but now even with entity_row: true it still shows one. Thanks for the workaround I'll give that a try myself!

ildar170975 commented 1 year ago

This is likely the result of the material design v3 updates in 2022.11.

Sure. And this should be fixed...

SGXander commented 1 year ago

Oh agreed, Last release was in 2020 and there are 45 open issues so I think it's unlikely without a fork though. Workaround working for me so thank you again.