Skip to content

Commit fb7aebe

Browse files
authored
Merge pull request #23880 from craig-osterhout/grid-fix
component: adjust grid resizing
2 parents ee5fefd + 9681433 commit fb7aebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/grid.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ $cols := .Get "cols" | default 3 }}
22
<div
3-
class="not-prose md:grid-cols-{{ math.Max 2 (sub $cols 1) }} lg:grid-cols-{{ $cols }} grid grid-cols-1 gap-4 mb-6"
3+
class="not-prose md:grid-cols-{{ math.Max 2 (sub $cols 1) }} xl:grid-cols-{{ $cols }} grid grid-cols-1 gap-4 mb-6"
44
>
55
{{ $items := index .Page.Params (.Get "items" | default "grid") }}
66
{{ range $items }}

0 commit comments

Comments
 (0)