I donât quite understand.
Youâve carefully made sure it will always put your cards in exactly four columns, in the way described in the readme.
The readme also says
Since layout-card is a card in it self its area of effect will be limited to the width of a card, and thus you will (almost) always want to use it in panel mode:
so that explains exactly what youâre seeing.
Thereâs also descriptions and examples on how to set the maximum width of the columns within the layout card.
It displays perfectly on my phone (everything vertical), but it shows terrible on a desktop (everything vertical). I want something that will fill up the horizontal space on large displays (if at all possible âŠ)
Youâve started with a vertical stack, itâs that card youâve made take up the panel, not the layout card. So all youâre going to get is the contents of that vertical stack.
Panel
Setting panel true sets the view to panel mode. In this mode the first card is rendered full-width, other cards in the view will not be rendered. This mode is good when using cards like map , stack or picture-elements . Note that badges will not appear in Panel Mode.
Put your custom layout card first, let it control the layout. I think you want it in vertical mode then use breaks where youâd like the new columns to start. Thatâll give you everything in one vertical on your phone and as many as you specify on your desktop.
Thatâs not how the vertical stack works.
It will put your first layout card under the second one. Stacked vertically. It you want that to work, youâll have to replace that with a layout-card.
Ow, i thaught it was ok because iâve put the other cards in the vertical cards. My understanding was that the vertical layout would only apply to the cards that are defined within it ?
I mean, I have the âroot-cardâ. That root-card contains multiple âvertical stack cardsâ. Those can contain a custom layout.
But then it will try to fill up horizontally first. If i set the layout of the custom-layout to vertical, it will go vertical but will never add columns if not everything can be show vertically without scrollbars.
Is there a way to go vertically as long as no scrollbars are needed, and then go horizontally ?
EDIT: when i load the page, everything is vertical. If I resize the window a bit, it jumps to columns (ok !). If I hit refresh, it is single column again.
Hi @thomasloven I love this addon but I am wondering something. I have 8 buttons in layout card. They all are state switches as I wanted them to be toggled if I want to show the button or not. The problem is, if I turn one off it will move the button up vertically in the layout. Would it be possible (if it even is possible) to have the button moved horizontally?
Hi, I have same problem as there: đč Layout-card - Take control of where your cards end up
Only difference is that I can switch views and it works fine but when I refresh lovelace it goes back to one column and I have to refresh page, on mobile always one column.
I guess that i have the last version, downloaded it just today from your git, so could you help me please ?
Iâve been playing with the grid layout and have come across something I cant seem to control - the gap on the first card is larger then the gap for the second card (Screenshots 1 & 2)
Looking at the generated style (Screenshot 3) there is a style setting for the first card to have a larger top margin - iâve tried to remove through the style option without success
For 2 days Iâm struggling to get it done a lovelace page but without success. Basically I want to put 6 icons side by side if viewing on a pc or a tablet and all icons under each other on mobile phone. The pc and the mobile view works fine but not on the tablet.
This is my code. Two perfectly identical custom layout-cards. The first one aligns the content correctly the second one doesnât. Why?