Skip to content

Commit

Permalink
fix: clearable file input dark mode (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Sep 22, 2023
1 parent 56aebc3 commit 9365364
Showing 1 changed file with 1 addition and 1 deletion.
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 mb-4 p-1 rounded-md w-48">
<div class="bg-gray-50 border mb-4 p-1 rounded-md w-48 dark:bg-white/[.02] dark:border-gray-700">
<a href="{{ widget.value.url }}">
<img src="{{ widget.value.url }}" alt="{% trans 'Image preview' %}" class="rounded" />
</a>
Expand Down

0 comments on commit 9365364

Please sign in to comment.