Skip to content

Commit

Permalink
feat: simplified picture design (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Jun 5, 2024
1 parent 3986ffb commit 67d7a03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/unfold/static/unfold/css/styles.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +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>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load i18n %}

{% if widget.attrs.accept == 'image/*' and widget.is_initial %}
<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">
<div class="mb-4 max-w-48">
<a href="{{ widget.value.url }}" target="_blank">
<img src="{{ widget.value.url }}" alt="{% trans 'Image preview' %}" class="block rounded" />
</a>
Expand Down

0 comments on commit 67d7a03

Please sign in to comment.