From 105ff5df8bf600bf66f5a63c99296544ae3779f2 Mon Sep 17 00:00:00 2001 From: opencode Date: Wed, 15 Jul 2026 11:50:46 +0200 Subject: [PATCH] Restyle: clean square cover art with subtle shadow, narrower feed container (max-w-2xl) --- .../resources/META-INF/resources/css/app.css | 37 ++----------------- .../templates/fragments/feed-row.html | 21 ++++------- src/main/resources/templates/index.html | 2 +- 3 files changed, 13 insertions(+), 47 deletions(-) diff --git a/src/main/resources/META-INF/resources/css/app.css b/src/main/resources/META-INF/resources/css/app.css index 73a597d..327902a 100644 --- a/src/main/resources/META-INF/resources/css/app.css +++ b/src/main/resources/META-INF/resources/css/app.css @@ -11,37 +11,8 @@ input[type="search"]::-webkit-search-cancel-button { appearance: none; } -/* Vinyl-style cover art in feed */ -.vinyl-wrap { - border-radius: 50%; - overflow: hidden; - position: relative; - box-shadow: - 0 0 0 3px rgba(0,0,0,0.3), - 0 0 0 4px rgba(255,255,255,0.05), - 0 4px 12px rgba(0,0,0,0.4); - background: #1a1a1a; -} - -.vinyl-cover { - border-radius: 50%; - transition: transform 0.4s ease; -} - -.vinyl-wrap:hover .vinyl-cover { - transform: rotate(8deg); -} - -/* Center spindle hole */ -.vinyl-hole { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 14px; - height: 14px; - border-radius: 50%; - background: #0b0f19; - border: 2px solid rgba(255,255,255,0.15); - pointer-events: none; +/* Cover art in feed */ +.cover-art { + border-radius: 6px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); } diff --git a/src/main/resources/templates/fragments/feed-row.html b/src/main/resources/templates/fragments/feed-row.html index 51020e9..1792fc9 100644 --- a/src/main/resources/templates/fragments/feed-row.html +++ b/src/main/resources/templates/fragments/feed-row.html @@ -1,22 +1,17 @@ -
-
-
- cover -
-
-
+
+ cover
{row.artist.name}
+ class="link link-hover text-base font-bold leading-tight block truncate"> {row.title} -
+
{#if row.primaryType??}{row.primaryType}{/if} {#if row.secondaryTypes??}{row.secondaryTypes}{/if} diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index f6419b2..3f30fae 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -65,7 +65,7 @@
-
+
{#include fragments/feed-list.html rows=rows nextOffset=nextOffset hasMore=hasMore pageSize=pageSize /}