Skip to content

Commit cc7f786

Browse files
authored
fix: display form lines in grid (#1164)
1 parent 34fa2ed commit cc7f786

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/unfold/templatetags/unfold.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,8 @@ def fieldset_row_classes(context: Context) -> str:
367367
if len(line.fields) > 1:
368368
classes.extend(
369369
[
370-
"flex",
371-
"flex-row",
372-
"flex-wrap",
370+
"grid",
371+
f"lg:grid-cols-{len(line.fields)}",
373372
]
374373
)
375374

0 commit comments

Comments
 (0)