From ebf6e0e6fa70ee694e591eb56fc10c50a06709e1 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 16 Jul 2026 00:13:24 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Herz-Icon=20ohne=20blauen=20Hintergrund?= =?UTF-8?q?=20=E2=80=94=20JS-Inline-Styles=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die JavaScript-Initialisierung und Click-Handler setzten btn.style.background = '#20228a' und ueberschrieben die CSS-Regel background:none. Entfernt in beiden Code-Pfaden. --- app.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app.py b/app.py index 2f81a28..1047260 100644 --- a/app.py +++ b/app.py @@ -4740,9 +4740,6 @@ def public_detail(sub_id: int): var id = parseInt(btn.getAttribute('data-id')); if (likedPosts.indexOf(id) !== -1) {{ btn.classList.add('liked'); - btn.style.background = '#20228a'; - btn.style.color = '#fff'; - btn.style.borderColor = '#20228a'; }} btn.addEventListener('click', function() {{ @@ -4754,9 +4751,6 @@ def public_detail(sub_id: int): if (!data.already) {{ btn.classList.add('liked'); btn.innerHTML = ' ' + data.likes; - btn.style.background = '#20228a'; - btn.style.color = '#fff'; - btn.style.borderColor = '#20228a'; likedPosts.push(id); localStorage.setItem('likedPosts', JSON.stringify(likedPosts)); }}