Add feedback components 106-130; inert scope, focus return, two-step deploy
This commit is contained in:
87 files changed
+2492
-147
No files matched your search
+2
-2
@@ -18,8 +18,8 @@ type MasonryOptions struct {
|
||||
// Masonry puts each item into the shortest column.
|
||||
func Masonry(c *ui.Context, heights []int, o MasonryOptions, item func(i int)) *ui.Element {
|
||||
k := pixel.K(c)
|
||||
gap := orDef("Masonry Gap", o.Gap, 4)
|
||||
n := orDef("Masonry Columns", o.Columns, 3)
|
||||
gap := pixel.Or("Masonry Gap", o.Gap, 4)
|
||||
n := pixel.Or("Masonry Columns", o.Columns, 3)
|
||||
cols := lanes(heights, n, gap)
|
||||
row := ui.Row(c).FillWidth().Gap(k.D(gap)).AlignItems(ui.Start)
|
||||
w, check := pixel.WrapWidth(c, row)
|
||||
|
||||
Reference in new issue
Block a user