thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

Still shows a blank card using mediaquery #24

Closed iptvcld closed 4 years ago

iptvcld commented 4 years ago

Even though i am on a laptop; it is not showing Home which s good but it has allocated space in the card of where it should go. It has added it self in a new coloum and moved my others to the left

        type: custom:state-switch
        entity: mediaquery
        states:
          "(max-width: 500px)":          
            type: markdown
            content: '<a href="/lovelace/11"><b>Home</b></a>' 
thomasloven commented 4 years ago

state-switch will always report itself as large as the largest card contained in it. Since the layout is not updating dynamically, this can't be changed.