|
3 | 3 | <div class="flex flex-row"> |
4 | 4 | <div class="border flex items-center overflow-hidden rounded-md shadow-sm text-sm max-w-2xl w-full focus-within:ring focus-within:ring-primary-300 focus-within:border-primary-600 dark:border-gray-700 dark:focus-within:border-primary-600 dark:focus-within:ring-primary-700 dark:focus-within:ring-opacity-50"> |
5 | 5 | {% if widget.is_initial and not widget.required %} |
6 | | - <div class="bg-gray-50 border-r flex flex-none items-center self-stretch px-3 dark:bg-gray-900"> |
| 6 | + <div class="bg-gray-50 border-r flex flex-none items-center self-stretch px-3 dark:bg-gray-900 dark:border-r-gray-700"> |
7 | 7 | <label for="{{ widget.checkbox_id }}" class="flex items-center"> |
8 | | - <input type="checkbox" class="form-check-input" name="{{ widget.checkbox_name }}" id="{{ widget.checkbox_id }}" /> |
| 8 | + <input type="checkbox"{% if widget.class %} class="{{ widget.class }}"{% endif %} name="{{ widget.checkbox_name }}" id="{{ widget.checkbox_id }}" /> |
9 | 9 |
|
10 | | - <span class="ml-2 text-gray-500"> |
| 10 | + <span class="ml-2 text-gray-500 dark:text-gray-400"> |
11 | 11 | {{ widget.clear_checkbox_label }} |
12 | 12 | </span> |
13 | 13 | </label> |
|
19 | 19 | <div class="flex flex-none items-center leading-none self-stretch"> |
20 | 20 | <input id="{{ widget.name }}" type="{{ widget.type }}" name="{{ widget.name }}" class="opacity-0 pointer-events-none" {% include "django/forms/widgets/attrs.html" %} /> |
21 | 21 |
|
22 | | - <label for="{{ widget.name }}" class="cursor-pointer text-gray-400 px-3 dark:text-gray-400"> |
| 22 | + <label for="{{ widget.name }}" class="cursor-pointer text-gray-400 px-3 dark:text-gray-500"> |
23 | 23 | <span class="material-symbols-outlined">file_upload</span> |
24 | 24 | </label> |
25 | 25 | </div> |
26 | 26 | </div> |
27 | 27 |
|
28 | 28 | {% if widget.attrs.accept == 'image/*' and widget.is_initial %} |
29 | | - <div class="bg-gray-50 border h-9 ml-3 overflow-hidden relative rounded-md shadow-sm w-9 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500"> |
30 | | - <div class="absolute flex font-medium h-full items-center left-0 justify-center text-gray-400 top-0 w-full z-10 dark:text-gray-500"> |
| 29 | + <div class="h-9.5 ml-3 relative w-9.5"> |
| 30 | + <div class="absolute border flex font-medium h-full items-center left-0 rounded-md justify-center shadow-sm text-gray-400 top-0 w-full z-10 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500"> |
31 | 31 | ? |
32 | 32 | </div> |
33 | 33 |
|
34 | | - <a href="{{ widget.value.url }}" target="_blank" class="bg-center bg-cover bg-no-repeat block h-9 relative w-9 z-20" style="background-image: url('{{ widget.value.url }}')"> |
| 34 | + <a href="{{ widget.value.url }}" target="_blank" class="bg-center bg-cover bg-no-repeat block h-9.5 overflow-hidden relative rounded-md w-9.5 z-20" style="background-image: url('{{ widget.value.url }}')"> |
35 | 35 | </a> |
36 | 36 | </div> |
37 | 37 | {% endif %} |
|
0 commit comments