thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.04k stars 126 forks source link

`card_margin` broken on grid layout #298

Open red4dj opened 1 month ago

red4dj commented 1 month ago

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:

Landshark77 commented 1 month ago

Looks like a duplicate of #292

nobodyspecial commented 1 month ago

Can confirm. card_margin is not working

Landshark77 commented 1 month ago

add:

masonry-view-card-margin: "0"

to your theme yaml

Also appears this add on is no longer being maintained.