Fix positioning of format labels

This commit is contained in:
Claudio Ortolina
2024-09-28 20:25:27 +01:00
parent 64ea8fe3fa
commit e00c926afe
2 changed files with 2 additions and 2 deletions
@@ -26,7 +26,7 @@
<:col :let={{_id, record}} label="Image">
<span class="relative inline-block">
<img class="max-w-16 rounded-lg shadow" src={~p"/images/#{record.id}"} alt={record.title} />
<span class="absolute right-0 bottom-0 block h-6 w-6 text-white drop-shadow-md">
<span class="absolute right-1 bottom-0 block text-white drop-shadow-md">
<%= Records.Record.format_short_label(record.format) %>
</span>
</span>
@@ -14,7 +14,7 @@
<div class="columns-2">
<span class="relative inline-block">
<img class="w-full shadow" src={~p"/images/#{@record.id}"} alt={@record.title} />
<span class="absolute right-2 bottom-1 block h-6 w-6 text-white drop-shadow-md">
<span class="absolute right-2 bottom-1 block text-white drop-shadow-md">
<%= Records.Record.format_short_label(@record.format) %>
</span>
</span>