Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card border shown when conditional card is used #138

Open
Kire88Visser opened this issue Nov 5, 2022 · 12 comments
Open

Card border shown when conditional card is used #138

Kire88Visser opened this issue Nov 5, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@Kire88Visser
Copy link

Kire88Visser commented Nov 5, 2022

When using the conditional card the card that is displayed when the condition is true has a border around it (see below for the TV and fridge icons).
2022-11-05 13_44_29-New dashboard – Home Assistant

Also occasionally when loading the HA page the borders appear around all the cards that are within the vertical stack in card. Reloading often removes the borders again, but never for the conditional card.

@SinisterMedusa
Copy link

SinisterMedusa commented Nov 6, 2022

I’m having the same issues, more in general the borders are shown whenever the stack in card is nested inside any type of card.
If you are using CARD_MOD you can manually solve the problem using the following card_mod style in the nested card:

type: custom:vertical-stack-in-card
card_mod:
  style: |
    ha-card {
      border: none;
    }

@Tontze
Copy link

Tontze commented Dec 10, 2022

This seems to be working if you dont have any themes enabled :/

In configuration window where theme does not apply :
kuva

And in desktop after saving :
kuva

@alanmilinovic
Copy link

alanmilinovic commented Dec 18, 2022

I’m having the same issues, more in general the borders are shown whenever the stack in card is nested inside any type of card. If you are using CARD_MOD you can manually solve the problem using the following card_mod style in the nested card:

type: custom:vertical-stack-in-card
card_mod:
  style: |
    ha-card {
      border: none;
    }

Not working for me, as soon as sensor is updated, card is redrawn and border appears.

@itspt1
Copy link

itspt1 commented Dec 19, 2022

@Kire88Visser
Hey, off-topic but, which weather card is that? It looks nice.

@Kire88Visser
Copy link
Author

@itspt1 its the clock weather card:
https://github.com/pkissling/clock-weather-card

@bcutter
Copy link

bcutter commented Jan 7, 2023

Can this be fixed in vertical-stack-in-card? Maybe by passing a config option borders: true|false ?

@alanmilinovic
Copy link

alanmilinovic commented Jan 7, 2023

This is how I fixed it, but not by putting it on vertical-stack-in-card, I use it on cards that are having the actual border. I am not using card_mod and this is the only solution that worked for me.

style: |
    ha-card {
      border: 0px;
    }

@tofrie
Copy link

tofrie commented Feb 5, 2023

I have the same issue.. style won‘t work for me:

  - type: conditional
    conditions:
      - entity: sensor.time_to_new_fire_wood_living_room
        state_not: '0:00:00'
      - entity: sensor.phase_living_room
        state_not: Standby
    card:
      type: custom:mushroom-entity-card
      entity: sensor.time_to_new_fire_wood_living_room
      name: Zeit zum Nachlegen
      icon: mdi:clock-outline
      primary_info: state
      secondary_info: name
      style: |
        ha-card {
          border: 0px;
        }

@tofrie
Copy link

tofrie commented Feb 5, 2023

Looks like:

87C39A05-5F6F-4894-AAE7-01A67B9D5BBE

@alanmilinovic
Copy link

alanmilinovic commented Feb 5, 2023

Looks like:

87C39A05-5F6F-4894-AAE7-01A67B9D5BBE

I also have it from time to time, for example when HA is warming after reboot. I just close HA and reopen it.

Also have you placed style on correct element?
Have you cleared browser cache?

@tofrie
Copy link

tofrie commented Feb 5, 2023

I posted my code snippet above. The condition is part of vertical stack. The style is placed in the card with border. I tried different browser and HA App on iPhone.

@alanmilinovic
Copy link

I posted my code snippet above. The condition is part of vertical stack. The style is placed in the card with border. I tried different browser and HA App on iPhone.

Try to put it on vertical-stack-in-card then. I don't know, in my case it worked well.

@ofekashery ofekashery added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants