Please have a look, for I cant figure out why I keep getting 3 columns. Ive copied the exact code I use in all my Yaml views for 2 columns, but somehow in UI mode I keep getting 3 columns, no matter what.
right, so finally I guessed the way it should be done…
Its really odd, because of the View type being listed twice, and the max_cols: 2
isnt a view type, but an option within layout:
which now isnt typed at all…
see the example ion the repo:
views:
- title: Home
type: custom:masonry-layout
layout:
width: 300
max_cols: 10
cards: ...
which would translate to
views:
- title: Cameras
type: custom:horizontal-layout
layout:
max_cols: 2
cards: ...
o well, it works now.