question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.0.1/2 moves full card config based on individual mod

See original GitHub issue

My Home Assistant version: 0.XX.X 116.0

My lovelace configuration method (GUI or yaml):

yaml What I am doing:

  - type: entities
    title: System settings
    show_header_toggle: false
    style: |
      .card-header {color: var(--primary-color);font-weight: bold;}
    entities:
      - sensor.speedtest_download
      - type: custom:slider-entity-row
        entity: input_number.ha_delayed_startup
      - type: divider
      - entity: automation.update_available
        secondary_info: last-triggered
      - entity: automation.updater_notification
        secondary_info: last-triggered
      - type: divider
      - type: custom:hui-element
        card_type: markdown
        style: |
          .card-header {color: var(--primary-color);font-weight: bold;}
          ha-card {
            box-shadow: none;
            margin: -5px 15px 0px -15px;
          }
        title: Log tail
        content: >
          {{states('sensor.log_tail')}}

What I expected to happen:

show the above setup aligned (as it was up to 2.0.0)

What happened instead:

1 picture says it all:

Schermafbeelding 2020-10-08 om 15 01 55

Minimal steps to reproduce:

# The least ammount of code possible to reproduce my error
      - type: custom:hui-element
        card_type: markdown
        style: |
          .card-header {color: var(--primary-color);font-weight: bold;}
          ha-card {
            box-shadow: none;
            margin: -5px 15px 0px -15px;
          }

# End of code

couldnt really say, in the above code. Surely it is the style: with the margin settings. After having refreshed a few times, this sometimes goes way. And displays as it should (up to 2.0.0)

Schermafbeelding 2020-10-08 om 15 05 43

only to come back again unexpectedly. Have tested some more, and can conform it is the update from 2.0.0 to 2.0.1 causing this behavior. I’ll change the title of the issue accordingly

Error messages from the browser console:


By putting an X in the boxes ([ ]) below, I indicate that I:

[X ] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

[X ] Have made sure I am using the latest version of the plugin.

[X] Have followed the troubleshooting steps of the “Common Problems” section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

[X] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslovencommented, Oct 8, 2020

I like what you’ve got going on there, btw. It looks cool!

0reactions
thomaslovencommented, Oct 9, 2020

This method will keep working even after I fix the underlying issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Card-mod - Super-charge your themes!
A while ago, I created card-mod, a custom card* that lets you change various css options for other lovelace cards. Much more skilled...
Read more >
BEST Warzone 2.0 Optimization Guide | Max FPS - YouTube
BEST Warzone 2.0 Optimization Guide | Max FPS | Best Settings | + DMZ.
Read more >
thomasloven/lovelace-card-mod: Add CSS styles to ... - GitHub
Cards are styled by adding a card_mod parameter to the card configuration. In basic form, this parameter contains a string of CSS which...
Read more >
DeepFaceLab 2.0 Guide | MrDeepFakes Forums
32GB of RAM for single GPU configuration, 64GB+ for 2+ GPUs ... good to move faces into different folders based on where they...
Read more >
For modding START HERE! : r/skyrimvr - Reddit
Many mods do not have a Mod Configuration Menu but just exist in the game after installation. You might ask yourself "Should I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found