From 485275d6c03a0464df789da67bd72e38273b3c0e Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Wed, 28 Jan 2026 16:08:17 +0100 Subject: [PATCH] Move YouTube link into title row to save vertical space --- wwwroot/app.js | 6 ++++-- wwwroot/styles.css | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wwwroot/app.js b/wwwroot/app.js index e30ba76..b0e0d58 100644 --- a/wwwroot/app.js +++ b/wwwroot/app.js @@ -271,11 +271,13 @@ function buildCard(s, { showAuthor }) {

${s.name}

- ${showAuthor && s.author ? `${s.author}` : ""} +
+ ${s.youtubeUrl ? `YouTube ↗` : ""} + ${showAuthor && s.author ? `${s.author}` : ""} +
${s.genre ? `

${s.genre}

` : ""} ${s.description ? `

${s.description}

` : ""} - ${s.youtubeUrl ? `YouTube ↗` : ""}
`; if (hasImage) { diff --git a/wwwroot/styles.css b/wwwroot/styles.css index 1dcc610..876c0da 100644 --- a/wwwroot/styles.css +++ b/wwwroot/styles.css @@ -147,14 +147,16 @@ button.ghost { .card-title-row { display: flex; justify-content: space-between; - align-items: flex-start; + align-items: center; gap: 8px; } .card-title-row h3 { margin: 0; font-size: 18px; } +.title-meta { display: flex; align-items: center; gap: 8px; } .muted { color: #9ca3af; margin: 0; } .link { color: #93c5fd; text-decoration: none; font-weight: 600; } .link:hover { text-decoration: underline; } +.link.compact { font-size: 14px; } .chip { background: #1f2937; color: #e5e7eb;