Skip to content

Commit 67d7a03

Browse files
authored
feat: simplified picture design (#446)
1 parent 3986ffb commit 67d7a03

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="readonly bg-gray-50 border font-medium max-w-2xl px-3 py-2 rounded-md shadow-sm text-gray-500 text-sm dark:border-gray-700 dark:text-gray-400 dark:bg-gray-800 {% if field.is_json %}truncate whitespace-pre-wrap{% endif %}">{% if value %}{{ value }}{% elif field.contents %}{{ field.contents }}{% else %}-{% endif %}</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load i18n %}
22

33
{% 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">
55
<a href="{{ widget.value.url }}" target="_blank">
66
<img src="{{ widget.value.url }}" alt="{% trans 'Image preview' %}" class="block rounded" />
77
</a>

0 commit comments

Comments
 (0)