Skip to content

Commit 56f1678

Browse files
authored
feat: compressed fields subtle separator (#1153)
1 parent 44f88b1 commit 56f1678

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/templatetags/unfold.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ def fieldset_row_classes(context: Context) -> str:
369369
[
370370
"lg:border-b",
371371
"lg:border-base-200",
372+
"lg:border-dashed",
372373
"dark:lg:border-base-800",
373374
"last:lg:border-b-0",
374375
]
@@ -397,7 +398,8 @@ def fieldset_line_classes(context: Context) -> str:
397398
"flex-col",
398399
"flex-grow",
399400
"group/line",
400-
"p-3",
401+
"px-3",
402+
"py-2.5",
401403
]
402404
field = context.get("field")
403405
adminform = context.get("adminform")
@@ -417,6 +419,7 @@ def fieldset_line_classes(context: Context) -> str:
417419
[
418420
"border-b",
419421
"border-base-200",
422+
"border-dashed",
420423
"group-[.last]/row:border-b-0",
421424
"lg:border-b-0",
422425
"lg:border-l",

0 commit comments

Comments
 (0)