From 7fa0ed39e3726c822fe1591abaf97a955fe06e99 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 3 Feb 2024 10:06:57 +1100 Subject: [PATCH] Fix audio display in admin --- slices/admin/templates/photos/index.html.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slices/admin/templates/photos/index.html.slim b/slices/admin/templates/photos/index.html.slim index f5cae24..b1ca3cf 100644 --- a/slices/admin/templates/photos/index.html.slim +++ b/slices/admin/templates/photos/index.html.slim @@ -14,8 +14,8 @@ div class="mb-4 max-w-prose mx-auto prose dark:prose-invert" - photos.each_with_index do |photo, idx| - if photo.match(/.mp3/) div class="rounded max-w-xs" x-data="" id="photo-#{idx}" - div class="w-48 mb-2" - audio controls="" src="/#{photo.gsub("public/", "")}" + div class="h-48 w-48 mb-2" + audio class="w-48" controls="" src="/#{photo.gsub("public/", "")}" div class="grid grid-cols-2 gap-2" button class="hover:text-blue-400 p-1 bg-blue-100 rounded text-blue-600 no-underline" @click="$clipboard('#{Hanami.app.settings.micropub_site_url}/#{photo.gsub("public/", "")}')" Copy URL button class="hover:text-blue-400 p-1 bg-blue-100 rounded text-blue-600 no-underline" @click="$clipboard('')" Copy .md