Skip to content

Commit

Permalink
fix: display header text alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Jun 30, 2023
1 parent 2a62b64 commit 350e44b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/unfold/templates/unfold/helpers/display_header.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% load i18n static %}

<div class="flex items-center">
<div class="block flex flex-col">
<div class="flex flex-col text-right lg:text-left">
<h3>
{{ value.0 }}
</h3>

<p class="text-gray-500 text-xs">
<p class="text-gray-500">
{{ value.1 }}
</p>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/unfold/templatetags/unfold_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ def link_in_col(is_first: bool, field_name: str, cl: ChangeList) -> bool:
"py-2",
"text-left",
"text-sm",
"before:block",
"before:flex",
"before:capitalize",
"before:content-[attr(data-label)]",
"before:items-center",
"before:mr-auto",
"before:text-gray-500",
"first:border-t-0",
Expand Down

0 comments on commit 350e44b

Please sign in to comment.