Skip to content

Commit 3a89e4b

Browse files
authored
fix: file widget label size (#1937)
1 parent a66a375 commit 3a89e4b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/unfold/templates/unfold/widgets/clearable_file_input.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
{% endif %}
2323

24-
<label for="{{ widget.attrs.id }}" class="grow relative">
24+
<label for="{{ widget.attrs.id }}" class="flex grow relative">
2525
<input type="text" aria-label="{% trans 'Choose file to upload' %}" value="{% if widget.value %}{{ widget.value.url }}{% else %}{% trans 'Choose file to upload' %}{% endif %}" disabled class="grow font-medium min-w-0 px-3 py-2 text-ellipsis">
2626
<span class="absolute cursor-pointer left-0 bottom-0 top-0 right-0"></span>
2727
</label>

src/unfold/templates/unfold/widgets/clearable_file_input_small.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
{% endif %}
1616

17-
<label for="{{ widget.attrs.id }}" class="grow relative">
17+
<label for="{{ widget.attrs.id }}" class="flex grow relative">
1818
<input type="text" aria-label="{% trans 'Choose file to upload' %}" value="{% if widget.value %}{{ widget.value.url }}{% else %}{% trans 'Choose file to upload' %}{% endif %}" disabled class="grow font-medium min-w-0 px-3 py-2 text-ellipsis">
1919
<span class="absolute cursor-pointer left-0 bottom-0 top-0 right-0"></span>
2020
</label>

0 commit comments

Comments
 (0)