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.

Themes: Vertical-stack-card of dashboard behaving differently than the rest

See original GitHub issue

My Home Assistant version: 2022.11.2

My lovelace configuration method (GUI or yaml): GUI

What I am doing: I am trying to modify the margin of the cards on my dashboards via Themes so the cards have a small space in between and I can use nice box-shadows.

UPDATE: This problem is observed when vertical-stack cards are present.

Problem is, that

      card-mod-card-yaml: |
        .: |
          ha-card {
            margin-top: 50px;
            margin-left: 10px;
            margin-bottom: 50px;
            margin-right: 10px;
          }

applies to the vertical-stack of a dashboad differently than to the rest.

If I define margin-bottom and top, the vertical-stack cards on a dashboard have larger margins than all the others.

image

What I expected to happen: The distance between the cards would be identical.

What happened instead:

Minimal steps to reproduce: Add to your theme

      card-mod-card-yaml: |
        .: |
          ha-card {
            margin-top: 50px;
            margin-left: 10px;
            margin-bottom: 50px;
            margin-right: 10px;
          }

Error messages from the browser console:


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

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

  • Have made sure I am using the latest version of the plugin.

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

  • 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:open
  • Created 10 months ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ildar170975commented, Nov 29, 2022

Do not confirm.

image

image

cm_test_2_theme:

  card-mod-theme: cm_test_2_theme

  # card-mod-card-yaml: |
  #   .: |
  #     ha-card {
  #       color: red;
  #     }

  card-mod-card-yaml: |
    .: |
      ha-card {
        margin-top: 50px;
        margin-left: 10px;
        margin-bottom: 50px;
        margin-right: 10px;
      }
0reactions
AleXSR700commented, Dec 6, 2022

Ah, no, I meant that the masonry-view-card-margin also is applied to the cards inside vertical stack.

So to counteract that I would need to modify the code of the vertical stack using card-mod.

Screenshot_20221206_105346_Home Assistant.jpg

As you can see, the two upper cards have a margin applied due to the masonry-view-card-margin. I need to remove it “locally” in the vertical-stack-card’s cards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · thomasloven/lovelace-card-mod - GitHub
Contribute to thomasloven/lovelace-card-mod development by creating an ... Themes: Vertical-stack-card of dashboard behaving differently than the rest.
Read more >
Drop-in replacement for vertical-stack-in-card
Stack In Card by @RomRider A replacement for vertical-stack-in-card and horizontal-stack-in-card with some more features. It allows to group ...
Read more >
There's got to be a better way to organize cards on a larger ...
I just managed to create a new dashboard for my mobile device ... Then each vertical stack card has the individual cards I...
Read more >
Reports and Dashboards Limits, Limitations, and Allocations
Matrix reports display a maximum of 2,000 groupings in the vertical axis when Show ... emails don't reflect changes made to the color...
Read more >
Application layout guide - R Shiny - RStudio
Responsive layout is enabled by default for all Shiny page types. To disable responsive layout you should pass responsive = FALSE to the ......
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