Ha. Yes! Found out what rtl was standing for. Felt silly once i figured it out. haha. I will give the stacked layout-cards a try to see if that helps me out.
Great! I was kind of thinking so, but I wasnāt sure.
One thing I can see being super beneficial would be to enable the grid system to work responsively. I like how i can span cards, but they end up being static. Maybe itās not a bit deal and I will just have to live with having a ābig buttonā with two other columns next to it, but it would be nice to be able to shrink columns and the others become responsive and slide over.
For now, Iām going to continue trying to make this work.
I use grid quite a bit, but I have to say - itās not the best for truly responsive layouts. Nor can I see how it could be, itās all about placing things exactly where you want - kind of the opposite to responsive.
I use separate dashboards for portrait and landscape, layout cards to control layout and !include for individual ācardsā that I reuse between views. I also use lovelace_gen to further reuse ācardsā with different parameters.
My ācardsā are usually yaml files with embedded layout cards or stack-in-cards with several lovelace cards, controlled by lovelace_gen variables.
Totally understand where the ārepsonsiveā grid may not be the best use case there. Iām thinking of it from a bootstrap outlook in a home assistant way.
The biggest thing Iām struggling with now is if I have two columns in row 1, three columns in row 2. column 1 in row 2 maybe isnāt as wide as column 2 and three are. if i do that currently, I have to have a big gap between col 1 and col 2 and it just looks odd.
Again, iām not sure what I"m trying to accomplish is actually achievable without utilizing the grid layout. The only downfall to using the grid layout is responsiveness for me.
Hereās a screenshot where Iām trying a dashboard for my tablet. The problem is I didnāt want a huge button and was trying to get it where my weather card and perhaps the camera columns would āadjustā and move left where the column ends on the button-card.
When using the layout card, I have the following problem: if I open the input-select and the selection consists of a long menu that goes beyond the screen, then the screen starts twitching. This can be seen in the attached video.
And without a layout card, there is no defect.
Can this be fixed?
Hi folks,
The instructions says to configure resource url to ā/local/layout-card.jsā but the HACS automatically registered it as ā/hacsfiles/lovelace-layout-card/layout-card.jsā and the layout-card.js is located at ā/config/www/lovelace-layout-card/layout-card.jsā
My problem is that the layout-card is not working and its reporting the following: Custom element doesnāt exist: layout-card
How I can configure it correctly at resources?
I feel stupid, but I just canāt get it to workā¦ Even simple copy/paste of one of very first cases from this post does not work for meā¦ I set up new view just for testing, made it panel view, added within this view just one layout-card and here is the code I use:
The only difference to sample code from previous posts is that I added column width, to show how much space is available for additional columns. Here is the result:
Whatever I try to do I end up with single column. I tried auto and horizontal layout - the same result. The only option that seems to help is to add min_columns and the number of displayed colums increaes to specified number, but again is not dynamic (it does not increase to 3 when enough space or not reduce to 1 in very narrow window.Iām on the latest version of card (just installed from HACS) and HA (0.109.6). Please help!
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:
Yeahā¦ I was playing with code in meantimeā¦ breaks were in the original post, in the one I pasted in second one I removed them, but in recent one I also changed layout to horizontal (BTW tested auto too)ā¦ but it didnāt helped either.
It makes me thinking if there is something fundamentally wrong with my installation/configuration. I started to play with layout-card, because I faced this very issue in my other views, where cards were not properly ordered, but aligned into single column. Though I linked it to use of custom stack cards, that apparently have issues with calculation of dimentions (as I read in some other post). So I wanted to force proper layout by moving my config to layout-card, but faced exaclty the same problem already during the test, without even moving more complex configurations into. So perhaps it is sort of āglobalā problem for meā¦