django-unfold 0.26.0__py3-none-any.whl → 0.27.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {% load i18n %}
2
2
 
3
3
  {% if widget.attrs.accept == 'image/*' and widget.is_initial %}
4
- <div class="bg-gray-50 border flex items-center justify-center mb-4 min-h-32 p-1 rounded-md w-48 dark:bg-white/[.02] dark:border-gray-700">
4
+ <div class="mb-4 max-w-48">
5
5
  <a href="{{ widget.value.url }}" target="_blank">
6
6
  <img src="{{ widget.value.url }}" alt="{% trans 'Image preview' %}" class="block rounded" />
7
7
  </a>
@@ -2,20 +2,14 @@
2
2
  {% include 'django/forms/widgets/input.html' %}
3
3
 
4
4
  {% if related_url %}
5
- <a href="{{ related_url }}" class="related-lookup related-widget-wrapper-link view-related bg-white border cursor-pointer flex items-center h-9.5 justify-center ml-2 rounded shadow-sm shrink-0 text-gray-400 text-sm w-9.5 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500 dark:hover:text-gray-200" id="lookup_id_{{ widget.name }}" title="{{ link_title }}">
5
+ <a href="{{ related_url }}" class="related-lookup related-widget-wrapper-link view-related bg-white border cursor-pointer flex items-center h-9.5 justify-center ml-2 rounded shadow-sm shrink-0 text-gray-400 text-sm w-9.5 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500 dark:hover:text-gray-200" id="lookup_id_{{ widget.name }}">
6
6
  <span class="material-symbols-outlined text-sm">search</span>
7
7
  </a>
8
8
  {% endif %}
9
- </div>
10
9
 
11
- {% if link_label %}
12
- <strong class="mt-2 font-medium text-xs">
13
- {% if link_url %}
14
- <a href="{{ link_url }}" class="underline text-primary-500">
15
- {{ link_label }}
16
- </a>
17
- {% else %}
18
- {{ link_label }}
19
- {% endif %}
20
- </strong>
21
- {% endif %}
10
+ {% if link_label and link_url %}
11
+ <a href="{{ link_url }}" title="{{ link_label }}" class="bg-white border cursor-pointer flex items-center h-9.5 justify-center ml-2 rounded shadow-sm shrink-0 text-gray-400 text-sm w-9.5 hover:text-gray-700 dark:bg-gray-900 dark:border-gray-700 dark:text-gray-500 dark:hover:text-gray-200">
12
+ <span class="material-symbols-outlined text-sm">visibility</span>
13
+ </a>
14
+ {% endif %}
15
+ </div>