Skip to content

Commit f651d45

Browse files
authored
feat: progress component without title handling (#1576)
1 parent 0212a54 commit f651d45

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/unfold/templates/unfold/components/progress.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
<div class="flex flex-col gap-2 relative w-full {% if class %}{{ class }}{% endif %}">
2-
<div class="flex flex-row relative z-20">
3-
{% if title %}
4-
<h3 class="text-font-important-light dark:text-font-important-dark text-sm">
5-
{{ title }}
6-
</h3>
7-
{% endif %}
2+
{% if title or description %}
3+
<div class="flex flex-row relative z-20">
4+
{% if title %}
5+
<h3 class="text-font-important-light dark:text-font-important-dark text-sm">
6+
{{ title }}
7+
</h3>
8+
{% endif %}
89

9-
{% if description %}
10-
<strong class="bg-base-100 font-medium text-font-important-light ml-auto px-1.5 py-1 rounded-default text-xs dark:text-font-important-dark dark:bg-base-800">
11-
{{ description }}
12-
</strong>
13-
{% endif %}
14-
</div>
10+
{% if description %}
11+
<strong class="bg-base-100 font-medium text-font-important-light ml-auto px-1.5 py-1 rounded-default text-xs dark:text-font-important-dark dark:bg-base-800">
12+
{{ description }}
13+
</strong>
14+
{% endif %}
15+
</div>
16+
{% endif %}
1517

1618
{% if value %}
1719
<div class="bg-base-100 overflow-hidden rounded-default dark:bg-base-800">

0 commit comments

Comments
 (0)