From 7d06a9a6907f19c51375ec7c4689a4a1079bdff3 Mon Sep 17 00:00:00 2001 From: Claude Dev Date: Sun, 15 Mar 2026 20:44:59 +0100 Subject: [PATCH] ui: Info-Icons mit Hover-Tooltips an 6 Stellen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CSS-only Tooltip-System (.info-icon mit data-tooltip Attribut) - Modal: Art der Lage, Internationale Quellen, Telegram, Sichtbarkeit, Aufbewahrung - Dashboard: Faktencheck-Kachel (erklärt Status-Kategorien) Co-Authored-By: Claude Opus 4.6 (1M context) --- src/static/css/style.css | 59 +++++++++++++++++++++++++++++++++++++++ src/static/dashboard.html | 12 ++++---- 2 files changed, 65 insertions(+), 6 deletions(-) diff --git a/src/static/css/style.css b/src/static/css/style.css index cb59058..3dba39c 100644 --- a/src/static/css/style.css +++ b/src/static/css/style.css @@ -4863,3 +4863,62 @@ a.map-popup-article:hover { [data-theme="light"] .chat-message.assistant .chat-bubble { background: var(--bg-primary); } + +/* === Info-Icon Tooltips === */ +.info-icon { + display: inline-flex; + align-items: center; + justify-content: center; + width: 15px; + height: 15px; + border-radius: 50%; + border: 1px solid var(--text-disabled); + color: var(--text-disabled); + font-size: 9px; + font-weight: 600; + font-style: normal; + font-family: inherit; + cursor: help; + margin-left: 5px; + position: relative; + vertical-align: middle; + flex-shrink: 0; + transition: color 0.15s ease, border-color 0.15s ease; +} +.info-icon:hover { + color: var(--text-secondary); + border-color: var(--text-secondary); +} +.info-icon::after { + content: attr(data-tooltip); + position: absolute; + bottom: calc(100% + 8px); + left: 50%; + transform: translateX(-50%); + background: var(--bg-secondary); + color: var(--text-primary); + font-size: 11px; + font-weight: 400; + padding: 8px 12px; + border-radius: var(--radius); + border: 1px solid var(--border); + white-space: normal; + width: max-content; + max-width: 260px; + line-height: 1.4; + pointer-events: none; + opacity: 0; + visibility: hidden; + transition: opacity 0.15s ease, visibility 0.15s ease; + z-index: 100; + box-shadow: var(--shadow-md); +} +.info-icon:hover::after { + opacity: 1; + visibility: visible; +} +/* Tooltip nach unten wenn oben kein Platz (Klasse .tooltip-below) */ +.info-icon.tooltip-below::after { + bottom: auto; + top: calc(100% + 8px); +} diff --git a/src/static/dashboard.html b/src/static/dashboard.html index 230f536..10ab432 100644 --- a/src/static/dashboard.html +++ b/src/static/dashboard.html @@ -222,7 +222,7 @@
-
Faktencheck
+
Faktencheck i
@@ -323,7 +323,7 @@
- + - Internationale Quellen einbeziehen + Internationale Quellen einbeziehen i
DE + internationale Feeds (Reuters, BBC, Al Jazeera etc.)
@@ -346,12 +346,12 @@
Nachrichten aus konfigurierten Telegram-Kanälen berücksichtigen
- +
- +
0 = Unbegrenzt, max. 999 Tage