Giter Site home page Giter Site logo

Comments (9)

Mariusthvdb avatar Mariusthvdb commented on June 10, 2024 1

yep, just found out the same thing:

  - type: custom:vertical-stack-in-card
    cards:
      - type: picture
        image: /local/images/nmbs.png
        hold_action:
          action: url
          url_path: https://www.belgiantrain.be/nl
      - type: entities
        style: |
          ha-card {
            --ha-card-background: rgb(0,100,182);
            color: rgb(217,242,251);
          }
        title: Nmbs reizen
        show_header_toggle: false
        entities:
          - sensor.essen_brussel_noord
          - sensor.brussel_noord_essen

          - sensor.nmbs_live
          - sensor.nmbs_live_2
          - sensor.nmbs_live_3
          - sensor.nmbs_live_4

above style config does style the color: but the --ha-card-background won't work. For the sake of experiment I also tried background: and background-color:, and I've also tried a color name ('green') or hex value.

the above config worked up to 0.1.3, the latest updates after that made this happen. It certainly works for the individual entities card when used standalone, so I know the config to be correct.

please have a look for a fix why the vertical-stack-in-card frustrates this?

using the config in a vertical-stack works fine also:

  - type: vertical-stack
    cards:
      - type: picture
        image: /local/images/nmbs.png
        hold_action:
          action: url
          url_path: https://www.belgiantrain.be/nl
      - type: entities
        style: |
          ha-card {
            --ha-card-background: rgb(0,100,182);
            color: rgb(217,242,251);
          }
        title: Nmbs reizen
        show_header_toggle: false
        entities:
          - sensor.essen_brussel_noord
          - sensor.brussel_noord_essen
          - sensor.nmbs_live
          - sensor.nmbs_live_2
          - sensor.nmbs_live_3
          - sensor.nmbs_live_4

thanks

from vertical-stack-in-card.

sirotkaslo avatar sirotkaslo commented on June 10, 2024

I'm having this issue too, will there be a fix for this? thank you!

from vertical-stack-in-card.

josh929800 avatar josh929800 commented on June 10, 2024

Same issue for me...

from vertical-stack-in-card.

benct avatar benct commented on June 10, 2024

Users are reporting the same issue when placing xiaomi-vacuum-card in this card... ref. this issue.

from vertical-stack-in-card.

jacekpaszkowski avatar jacekpaszkowski commented on June 10, 2024

any chance to fix that issue?

from vertical-stack-in-card.

jacekpaszkowski avatar jacekpaszkowski commented on June 10, 2024

I've checked and it works ok in v0.1.3. Issue appered in v0.2.0

from vertical-stack-in-card.

jacekpaszkowski avatar jacekpaszkowski commented on June 10, 2024

just to note. i was able to workaround my issues usung card-mod repeting the styles which disappear after loading the card.

[...]
    style: |
      ha-card {
        background-image: url('/local/images/xiaomi_vacuum_2.png')!important;
        background-size: cover!important;
        background-repeat: no-repeat!important;
        background-position: center center!important;
      }
    type: 'custom:xiaomi-vacuum-card'

from vertical-stack-in-card.

RomRider avatar RomRider commented on June 10, 2024

There is a feature for that in my new card which can replace vertical-stack-in-card
I've created a new card which is almost a drop-in replacement for vertical-stack-in-card and a bunch of other features:
https://community.home-assistant.io/t/stack-in-card-drop-in-replacement-for-vertical-stack-in-card/180072

from vertical-stack-in-card.

ofekashery avatar ofekashery commented on June 10, 2024

Fixed in version 0.3.0, thanks!

from vertical-stack-in-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.