I had the same annoying 4px margin issues. I have solved it by copying (directory: config/lovelace/www/community/lovelace-layout-card) layout-card.js to layout-card_rs.js.
Then edit layout-card_rs.js with an editor (File editor). Change ‘4px’ or ‘8px’ in every line with the word ‘margin’ to ‘0px’.
After that edit the file (directory: config/) and change the line ‘- url: /hacsfiles/lovelace-layout-card/layout-card.js’ in ‘- url: /hacsfiles/lovelace-layout-card/layout-card_rs.js’.
Now you got rid of the annoying 4px margins and it wil not be updated anymore.
The two flow cards (Power Flow Now / Energy Flows (today)) are not aligned with the apexcharts-card.
I’m using following grid configuration:
layout:
grid-template-columns: 0em 74px 25% 42% 25% auto
grid-template-rows: grid-title-row-height auto auto
grid-gap: 0.1em
grid-template-areas: |
". . title title title ."
". nav line1 line1 line1 ."
". nav line2 line2 line2 ."
Where the two flow charts are in a horizontal-stack and the 3 gauges and apex are in a vertical-stack WITHIN that horizontal-stack
Can anyone point me in the right direction please ?
I am trying to have a certain card disappear on screens under 800px, but while it resizes the cards and columns, hiding a card actually pushes it off the screen but it still remains visible. See gif for example:
Love layout-card, however I face the following challenge:
I’d like to show all lights that are currently on in a certain area, and only show two cards per row on mobile and 5 cards per row on wider screens so, I figured horizontal stack would make sense.
Does anyone know how I can make sure if 1 light is one it shows 50% and if 3 lights are on the first two show on the 1st row and the 3rd on the second row?
Of coutype or paste code hererse on larger screens they can all 3 be displayed on the 1st row.
Try to use min-width on the button-cards, as you have it in a conditional-card, it will always “fill”, as much as it can in row-width … it’s the conditional-card which you have place in “grid-area” not the individual button-cards
Evening, not sure if I’m too tired or frustrated.
With this basic layout, grid with a vertical stack in each column, is there a way to remove/reduce the gap between the columns?
I have tried most of the style css I found in this forum, no luck
It’s not a gap in the columns, your center-card is just not “wide” enough to fill it’s column
Try to make 4 column 25% each
grid areas:
" left center center right "
Just a wild shot, in the dark night, but you have to “Stretch” your “center” card
PS: Beside you haven’t Defined any
view_layout:
grid-area:
Should state which card/vertical-stack / in which grid-area … now they are just thrown in and you might get an undesired “reordering” when viewing in lower resolution ( Loosing the point with grid-area ! )
Actually you also want the first vertical-stack to “fill” 2 rows ( as you have stacked 2 cards in there, which makes row 1 , 2 cards high ! … which you eventually will find out/see (Just try to ad another card/vertical-layout , and see where it ends up)
How do I I get these columns to justify into the center of the screen? So far everything justifies left. Do I really have to calculate 100% and then put in gap cards either side for padding???
I have the same problem of @domain_int .
Now it’s been about three days and can’t figure out why everything justified on the left instead of center.
Following my code: