Iām facing some issues with margins on a reduced resolution devices (smartphone with 414 pixels width). So i have a global horizontal card (on panel view), +1 grid for the content. Should i act somewhere to specify a minimum margin? (knowing that on a desktop view, all is fine). I feel that i miss something (or maybe i should rebuild the layout hierarchy).
can someone explains me how the column system works? I read the documentation and I canāt figure it out.
It doesnāt works like any other system that Iām familiar with like flexbox or grid.
Does anyone know what the best landscape settings be for a wall mounted Fire HD 10 2019 display are? I have a hard time figuring out what to put where and why. Do I use percentages or pixels or is that information even needed. I do know that the cards I have without this card fit best with two columns. Would auto layout and two columns be all I need to specify with this card?
Hi, so I read the ReadMe, but I canāt get my old setup to work with the new format. Perhaps Iām missing something, or maybe the feature is no longer working. I used layout-card inside a vertical-stack and lovelace with panelmode to true. The reason I did this, is because I have a custom made top and bottom bar with icons and notifications and in the center all my cards. I needed the cards to be a smaller width to not touch the borders of my screen. So basically:
type: vertical-stack
cards:
- TOP BAR CARDS
- LAYOUT CARD (at 96% column_width)
- BOTTOM CARD CARD
This was my previous code for layout-card and worked great.
Everyhing shows up fine, however the column_width does not work. I notice in your new ReadME it doesnāt list column_width as an option anymore. I tried just width and max_width and though it does somehow make it a little narrower and looks as I had, the code doesnāt seem to work. Setting to 90% as a test, shows same width as 96%.
Am I doing something wrong or is it somehow not supported anymore? I use percentage instead of pixels because I want it to work on numerous devices with different resolutions (which worked great). Also everything does show up fine in panel mode, so that works fine too now.
Someone please help me hereā¦ This yields a blank page. All that Iām trying to do is create two columns that are different sizes. Iāve tried this a dozen different ways and in fact I canāt get any of the new card types to show up at all.
yeah thanks that is great to know.
I guess the issue is with the horizontal layout in that case, so the question stands
this is my swipe-card config:
- type: custom:swipe-card
parameters:
spaceBetween: 8
effect: coverflow
grabCursor: true
centeredSlides: false # to have the swipe card start left side
slidesPerView: 4 # to auto render the correct size of the buttons, 4 in a row always
coverflowEffect:
rotate: 50
depth: 100
modifier: 1
slideShadows : true
pagination:
type: bullets
hideOnClick: true
cards:
!include /config/lovelace/buttons/buttons_alerts_swipe.yaml
having it display for cards by default, even if there are less than 4 (to have the button-cards it displays always show the correct format of 4 in a row)
to give you an idea, the button_alerts_swipe lists the conditional button-cards like:
Could you perhaps assist me to create that in grid? I only need a vertical stack but with the column set to 96%. I tried myself but canāt get it to work.
Hi,
Thank you for the great update!
I create a nice layout using grid type in you card to fit 3 buttons in a row when on iPhone, and 5 buttons in a row when on bigger screens, which works perfectly.
This is the code:
However it always seems that the row height is slightly bigger then width, although the button inside is always with ratio 1/1.
Can you please advise if there is an option to set each item ration to 1/1, or maybe limit the height to be exactly as contained button inside?
Sorry to ask a question instead of providing an answer. But I think you have experience and can help me judging by your code.
Can you help me in how to create a layout card using grid that consists of only one column with a max width of 96%? Basically my goal is to have a column that is 96% of the screen width.
The previous card version could do that with vertical layout mode and had it working. But now with 2.0 I need to use grid layout according to card developer. It does not work with previous code.
Hi,
I myself only started to learn the grid options, Thomas actually put link to CSS Grid page which was a big help, suggest you to go over it.
Having said that, you can try something like this: