Skip to content

Commit

Permalink
Support specifying column ratios in Kino.Layout.grid (#459)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
elepedus and jonatanklosko authored Aug 5, 2024
1 parent f6848b1 commit 3b2153c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/kino/layout.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ defmodule Kino.Layout do
## Options
* `:columns` - the number of columns in the grid. Defaults to `1`
* `:columns` - the number of columns in the grid. Optionally, supports
a tuple of column width ratio, such as `{1, 2, 1}`, for three columns,
where the middle one is twice as wide as the others. Defaults to `1`
* `:boxed` - whether the grid should be wrapped in a bordered box.
Defaults to `false`
Expand Down

0 comments on commit 3b2153c

Please sign in to comment.