From 7eff38478b64cb67de9599f4239705a3afbb183a Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Tue, 16 Jun 2026 19:18:45 +0000 Subject: Split album count into separate photo and video counts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace media_count helper with media_counts returning {photos, videos}. Album overview shows photo count as before, plus a coloured ▶ N badge only when an album (or its sub-albums) contains videos. Co-Authored-By: Claude Sonnet 4.6 --- public/css/style.css | 1 + 1 file changed, 1 insertion(+) (limited to 'public') diff --git a/public/css/style.css b/public/css/style.css index b907f0e..09de0b3 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -152,6 +152,7 @@ main { max-width: 1400px; margin: 0 auto; padding: 24px; } .album-label { padding: 6px 8px; font-size: .88rem; font-weight: 500; color: var(--text); display: flex; align-items: baseline; justify-content: space-between; gap: 6px; } .album-count { font-size: .75rem; font-weight: 400; color: var(--text-dim); white-space: nowrap; } +.album-video-count { color: var(--accent, #c57); } .duration-badge { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; padding: 2px 5px; border-radius: 3px; pointer-events: none; } #album-search { display: block; width: 100%; max-width: 280px; margin-bottom: 14px; padding: 5px 10px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: .9rem; } .card-meta { padding: 6px 8px; } -- cgit v1.2.3