From eb0669d6acfb0dd9ffaa9d5960b9496292e3d767 Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Tue, 28 Apr 2026 08:46:27 +0200 Subject: [PATCH] feat(#147): Hover-Tooltips fuer Abkuerzungen auf Antrag-Detail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Feedback: '(A)' hinter Partei, 'WP', 'PP' brauchen Erklaerung fuer Erstleser:innen. Loesung: ausfuehrliche title-Tooltips plus visuelle Affordanz (cursor:help). Geaendert: - v2-badge-antragsteller / -regierung: cursor:help - v2-score-chip[title]: cursor:help - (A) → 'A — Antragstellende Fraktion: hat den Antrag eingereicht.' - (R) → 'R — Regierungsfraktion: traegt die aktuelle Mehrheit im Landtag.' - WP-Chip: 'WP — Wahlprogramm-Treue (0–10): wie gut passt der Antrag zum aktuellen Wahlprogramm? + Begruendung' - PP-Chip: analog fuer Parteiprogramm-Treue - Score-Hero: Tooltip mit GWÖ-Score-Definition + Methodik-Verweis - 'Enth.:' im Abstimmungs-Block: dotted underline + Tooltip 'Enth. — Enthaltung: weder Zustimmung noch Ablehnung' Closes #147 --- app/static/v2/v2.css | 5 +++++ app/templates/v2/components/score_hero.html | 4 +++- app/templates/v2/screens/antrag_detail.html | 10 +++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/static/v2/v2.css b/app/static/v2/v2.css index e614b17..31b653a 100644 --- a/app/static/v2/v2.css +++ b/app/static/v2/v2.css @@ -988,8 +988,13 @@ body.v2 ul.v2-manual ul li::before { font-size: 10px; font-weight: 700; line-height: 1; + cursor: help; /* Browser zeigt Hilfe-Cursor — Affordanz fuer Tooltip */ } +/* Score-Chips bekommen die gleiche cursor-Affordanz, sodass User merken, + dass WP/PP nicht nur Labels sind sondern Tooltips haben (#147). */ +.v2-score-chip[title] { cursor: help; } + .v2-badge-antragsteller { background: var(--ecg-blue); color: #fff; diff --git a/app/templates/v2/components/score_hero.html b/app/templates/v2/components/score_hero.html index a4f8bfc..7e7a62c 100644 --- a/app/templates/v2/components/score_hero.html +++ b/app/templates/v2/components/score_hero.html @@ -20,7 +20,9 @@ {% set s = score | float %} {% if s < 5 %}{% set modifier = "low" %}{% else %}{% set modifier = "" %}{% endif %} -
+
diff --git a/app/templates/v2/screens/antrag_detail.html b/app/templates/v2/screens/antrag_detail.html index 9fde609..3de7e3e 100644 --- a/app/templates/v2/screens/antrag_detail.html +++ b/app/templates/v2/screens/antrag_detail.html @@ -298,7 +298,7 @@
{% endif %} {% if v.fraktionen_enthaltung %} -
Enth.: +
Enth.: {% for f in v.fraktionen_enthaltung %}{{ f }}{% endfor %}
{% endif %} @@ -324,18 +324,18 @@
{{ fs.fraktion }} - {% if fs.ist_antragsteller %}A{% endif %} - {% if fs.ist_regierung %}R{% endif %} + {% if fs.ist_antragsteller %}A{% endif %} + {% if fs.ist_regierung %}R{% endif %}
{% set wp_score = fs.wahlprogramm.score | float %} {% set pp_score = fs.parteiprogramm.score | float %} + title="WP — Wahlprogramm-Treue (0–10): wie gut passt der Antrag zum aktuellen Wahlprogramm dieser Fraktion? {{ fs.wahlprogramm.begruendung }}"> WP {{ "%.0f"|format(wp_score) }}/10 + title="PP — Parteiprogramm-Treue (0–10): wie gut passt der Antrag zum Grundsatzprogramm dieser Partei? {{ fs.parteiprogramm.begruendung }}"> PP {{ "%.0f"|format(pp_score) }}/10