Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

card_margin broken on grid layout #298

Open
4 tasks done
red4dj opened this issue Jul 14, 2024 · 3 comments
Open
4 tasks done

card_margin broken on grid layout #298

red4dj opened this issue Jul 14, 2024 · 3 comments

Comments

@red4dj
Copy link

red4dj commented Jul 14, 2024

My Home Assistant version: 2024.7.1

Layout-card version (FROM BROWSER CONSOLE): 2.4.5

What I am doing:
Adding the card_margin property to a grid-layout

What I expected to happen:
Apply 0px margin to each card in grid layout.

What happened instead:
No custom margin was applied. The cards kept the default margin.

Minimal steps to reproduce:

type: custom:layout-card
layout_type: custom:grid-layout
cards:
  - type: entity
    entity: sensor.time
    view_layout:
      grid-area: main
  - type: entity
    entity: sensor.date
    view_layout:
      grid-area: sidebar
layout:
  grid-template-columns: 33% auto
  grid-template-areas: |
    "main sidebar"
  margin: 0px
  card_margin: 0px

Error messages from the browser console:
N/A


By putting an X in the boxes ([X]) 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.
@red4dj red4dj changed the title card_margin broken on grid layout card_margin broken on grid layout Jul 14, 2024
@Landshark77
Copy link

Looks like a duplicate of #292

@nobodyspecial
Copy link

Can confirm. card_margin is not working

@Landshark77
Copy link

add:

masonry-view-card-margin: "0"

to your theme yaml

Also appears this add on is no longer being maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants