Git Product home page Git Product logo

Comments (11)

Vedeneb avatar Vedeneb commented on August 12, 2024 2

Any news on that? I have the same problem using the shopping-list-card. My goal is to have a more compact version by reducing the padding between each entry. But also here the list items seem to be added after card-mod kicked in, that's why I also have to switch tabs in order to make it work...

from lovelace-card-mod.

thomasloven avatar thomasloven commented on August 12, 2024 1

The map card is a bit special in that it pretty much places an empty card in your browser, requests a map from somewhere, and then lets the browser go away and do other things while the map loads in.
Once it is loaded, it adds everything else, like markers.

The problem is that the map-loading phase can be several milliseconds long(!), and during this time, card-modder does it's thing, but can't find anything because it doesn't exist, so it goes to sleep waiting for an update.

I'm trying to find a reliable way to make it wake up once the map is loaded, but the map card is fighting back...

from lovelace-card-mod.

thomasloven avatar thomasloven commented on August 12, 2024 1

I believe I found the issue. Try version 3.0.3.

from lovelace-card-mod.

noxhirsch avatar noxhirsch commented on August 12, 2024 1

Yeah! Now it works perfectly fine - thank you very much! :)

from lovelace-card-mod.

rexyiy avatar rexyiy commented on August 12, 2024

Same problem here ☝ (YAML, on Chrome desktop & mobile)

from lovelace-card-mod.

rexyiy avatar rexyiy commented on August 12, 2024

Does anybody has a solution for that? 😞

from lovelace-card-mod.

noxhirsch avatar noxhirsch commented on August 12, 2024

No solution from my side so far. I tried to understand the code, but didn't succeed.
In the chrome debugger it looks like the code of the card-mod is runs the last time before the map tiles & markers appear.
Maybe the card-mod could be delayed somehow or it could catch the event of the appearing elements.

from lovelace-card-mod.

noxhirsch avatar noxhirsch commented on August 12, 2024

Found out that debug_cardMod: true like in the readme is wrong, but debug_cardmod: true works.
There I can also see that it doesn't find any matches to ha-entity-marker while loading. Only when switching to another view it finds the match.

from lovelace-card-mod.

noxhirsch avatar noxhirsch commented on August 12, 2024

Thank you very much for your effort! ❤️

from lovelace-card-mod.

thomasloven avatar thomasloven commented on August 12, 2024

Please try with version 3.0

from lovelace-card-mod.

noxhirsch avatar noxhirsch commented on August 12, 2024

I've tried it now: With default card settings it works nearly all the time, but it doesn't seem to work with enabled hours_to_show

from lovelace-card-mod.

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.