Skip to content

Commit

Permalink
Use padding for vertical layout spacing
Browse files Browse the repository at this point in the history
Some adjustments
  • Loading branch information
piitaya committed Jul 13, 2023
1 parent 9146e3b commit 96c972f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ All column based layouts accept the following `layout` options:
| `max_cols` | number | Maximum number of columns to show | 4 if sidebar is hidden <br> 3 if sidebar is shown |
| `rtl` | `true`/`false` | Place columns in right-to-left order | `false` |
| `column_widths` | special | A [`grid-template-columns`](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns) specification of column widths | `none` |
| `margin` | string | A CSS margin applied to the layout itself | `4px 4px 0px 4px` |
| `padding` | string | A CSS padding applied to the layout itself | `0px` |
| `margin` | string | A CSS margin applied to the layout itself | `0px 4px 0px 4px` |
| `padding` | string | A CSS padding applied to the layout itself | `4px 0px 4px 0px` |
| `height` | string | A CSS height applied to the layout itself | `auto` |
| `card_margin` | string | CSS margin applied to each card in the layout | `var(--masonry-view-card-margin, 4px 4px 8px)` |
| `reflow` | `true`/`false` | If `true` the layout will get reorganized when cards are hidden (e.g. with conditional or entity-filter cards). May cause performance issues. | `false` |
Expand Down
Loading

0 comments on commit 96c972f

Please sign in to comment.