From a8be33266226c51f74a2e14bb6bb3bb73cd12967 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 17 Jun 2026 22:04:06 +0200 Subject: [PATCH] feat: Like-Button jetzt auch auf Detailseite klickbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Detailseite: 👍 als interaktiver Button (statt statischer Text) - JS-Fetch-Handler auf /api/like/, Cookie-Dedup - CSS: .detail-like-btn mit Hover/Liked-Styles (BSN-Blau) - Gleiche Logik wie Übersichtskarten (1 Like pro Browser) --- app.py | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 7a03c15..f987c67 100644 --- a/app.py +++ b/app.py @@ -2833,7 +2833,10 @@ def public_detail(sub_id: int): .detail-card {{ padding:1.2rem; }} .site-header {{ padding:0.8rem 1rem; }} }} - + + .detail-like-btn:hover {{ border-color:#20228a; color:#20228a; background:rgba(32,34,138,0.05); }} + .detail-like-btn.liked {{ background:#20228a; color:#fff; border-color:#20228a; font-weight:600; }} + .detail-like-btn:active {{ transform:scale(0.94); }}