fix: Windkarten-Tooltip + Anlagenzahl-Disclaimer überarbeitet
Windkarte-Tooltip: - Auf Touch-Geräten (@media hover:none) ausgeblendet, Detail-Panel öffnet eh bei Tap - max-width 360px, min-width 220px, white-space:normal, größeres padding/Schrift für bessere Lesbarkeit - Anlagen-Zahl aus Tooltip entfernt (nicht belastbar) - Gemeinden ungekürzt anzeigen, Truncate auf 3 entfernt WindAreaPanel: - "Anlagen geplant" nach unten verschoben (nach Investor), Zeile mit opacity-60 + italic + mute-Farbe — zeigt visuell dass es nur eine Schätzung ist - Disclaimer-Text überarbeitet: Obergrenzen-Schätzung 2-3 Anlagen je 100 ha (270-Meter-Klasse) statt Faustregel 4-6 StellingnahmeGenerator: gleicher Disclaimer-Text-Wortlaut. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -125,18 +125,6 @@
|
||||
<span class="font-semibold text-stein-800">{area.flaeche_ha.toFixed(1)} ha</span>
|
||||
</div>
|
||||
{/if}
|
||||
{#if area.anlagen_geplant != null}
|
||||
<div
|
||||
class="flex items-center justify-between px-3 py-1.5"
|
||||
title="Schätzung nach Faustregel ~4–6 Anlagen je 100 ha. Keine amtliche Festlegung — tatsächliche Anlagenzahl wird erst im Genehmigungsverfahren bestimmt."
|
||||
>
|
||||
<span class="flex items-center gap-1 text-xs text-stein-500">
|
||||
{t(T.windkarte_label_anlagen_geplant)}
|
||||
<Icon icon="mdi:information-outline" class="size-3 text-stein-400" />
|
||||
</span>
|
||||
<span class="font-semibold text-stein-800">~{area.anlagen_geplant}<span class="ml-0.5 text-xs text-stein-400">*</span></span>
|
||||
</div>
|
||||
{/if}
|
||||
{#if area.hoehe_max_m != null}
|
||||
<div class="flex items-center justify-between px-3 py-1.5">
|
||||
<span class="text-xs text-stein-500">{t(T.windkarte_label_hoehe_max)}</span>
|
||||
@@ -149,11 +137,23 @@
|
||||
<span class="font-semibold text-stein-800">{area.investor}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{#if area.anlagen_geplant != null}
|
||||
<div
|
||||
class="flex items-center justify-between px-3 py-1.5 opacity-60"
|
||||
title="Obergrenzen-Schätzung (etwa 2 bis 3 Anlagen je 100 ha, 270-Meter-Klasse). Keine amtliche Festlegung — tatsächliche Anlagenzahl wird erst im Genehmigungsverfahren bestimmt."
|
||||
>
|
||||
<span class="flex items-center gap-1 text-xs italic text-stein-400">
|
||||
{t(T.windkarte_label_anlagen_geplant)}
|
||||
<Icon icon="mdi:information-outline" class="size-3 text-stein-400" />
|
||||
</span>
|
||||
<span class="font-medium text-stein-500">~{area.anlagen_geplant}<span class="ml-0.5 text-xs">*</span></span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if area.anlagen_geplant != null}
|
||||
<p class="-mt-2 px-1 text-[10px] leading-snug text-stein-400">
|
||||
<span class="font-semibold">* Anlagenzahl:</span>
|
||||
Schätzung (~4–6 Anlagen je 100 ha) — keine amtliche Festlegung.
|
||||
Obergrenzen-Schätzung (etwa 2 bis 3 Anlagen je 100 ha, 270-Meter-Klasse). Keine amtliche Festlegung.
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -290,10 +290,9 @@
|
||||
: nrLabel;
|
||||
const lines: string[] = [];
|
||||
if (area.flaeche_ha != null) lines.push(`${t(T.windkarte_label_flaeche)}: ${area.flaeche_ha.toFixed(1)} ha`);
|
||||
if (area.anlagen_geplant != null) lines.push(`${t(T.windkarte_label_anlagen_geplant)}: ${area.anlagen_geplant}`);
|
||||
if (area.hoehe_max_m != null) lines.push(`${t(T.windkarte_label_hoehe_max)}: ${area.hoehe_max_m} m`);
|
||||
if (area.gemeinden && area.gemeinden.length > 0) {
|
||||
lines.push(`${t(T.windkarte_label_gemeinden)}: ${area.gemeinden.slice(0, 3).join(', ')}${area.gemeinden.length > 3 ? '…' : ''}`);
|
||||
lines.push(`${t(T.windkarte_label_gemeinden)}: ${area.gemeinden.join(', ')}`);
|
||||
}
|
||||
const esc = (s: string) => s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
||||
const tooltipHtml =
|
||||
@@ -386,13 +385,24 @@
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.15);
|
||||
color: #333735;
|
||||
font-size: 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
padding: 4px 8px;
|
||||
padding: 8px 12px;
|
||||
min-width: 220px;
|
||||
max-width: 360px;
|
||||
white-space: normal !important;
|
||||
line-height: 1.45;
|
||||
}
|
||||
:global(.windkarte-tooltip::before) {
|
||||
display: none;
|
||||
}
|
||||
/* Auf Touch-Geräten Tooltip ausblenden: Touch öffnet direkt das
|
||||
Detail-Panel, der Tooltip bricht sonst links aus dem Karten-Bereich. */
|
||||
@media (hover: none) {
|
||||
:global(.windkarte-tooltip) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
:global(.windkarte-label-wrap) {
|
||||
background: none !important;
|
||||
border: none !important;
|
||||
|
||||
@@ -833,7 +833,7 @@ ${outputText}
|
||||
Anlagen geplant
|
||||
<span
|
||||
class="cursor-help text-stein-400 hover:text-stein-600"
|
||||
title="Schätzung nach Faustregel ~4–6 Anlagen je 100 ha. Keine amtliche Festlegung, tatsächliche Anlagenzahl wird erst im Genehmigungsverfahren bestimmt."
|
||||
title="Obergrenzen-Schätzung (etwa 2 bis 3 Anlagen je 100 ha, 270-Meter-Klasse). Keine amtliche Festlegung, tatsächliche Anlagenzahl wird erst im Genehmigungsverfahren bestimmt."
|
||||
>
|
||||
<Icon icon="mdi:information-outline" class="size-3.5" />
|
||||
</span>
|
||||
@@ -866,10 +866,11 @@ ${outputText}
|
||||
{#if windArea.anlagen_geplant}
|
||||
<p class="mt-3 text-[11px] leading-snug text-stein-500">
|
||||
<span class="font-semibold">* Hinweis zur Anlagenzahl:</span>
|
||||
keine amtliche Festlegung, eigene Schätzung nach Faustregel
|
||||
~4–6 Anlagen je 100 ha. Aus dem Prüfbogen ZU-14 stammen nur
|
||||
Flächengröße und Windhöffigkeit. Die tatsächliche Anlagenzahl
|
||||
wird erst im Genehmigungsverfahren bestimmt.
|
||||
Obergrenzen-Schätzung (etwa 2 bis 3 Anlagen je 100 ha,
|
||||
270-Meter-Klasse). Keine amtliche Festlegung. Aus dem
|
||||
Prüfbogen ZU-14 stammen nur Flächengröße und Windhöffigkeit.
|
||||
Die tatsächliche Anlagenzahl wird erst im Genehmigungsverfahren
|
||||
bestimmt.
|
||||
</p>
|
||||
{/if}
|
||||
{#if windArea.notizen}
|
||||
|
||||
@@ -75,6 +75,9 @@
|
||||
"printer-outline": {
|
||||
"body": "<path fill=\"currentColor\" d=\"M19 8c1.66 0 3 1.34 3 3v6h-4v4H6v-4H2v-6c0-1.66 1.34-3 3-3h1V3h12v5zM8 5v3h8V5zm8 14v-4H8v4zm2-4h2v-4c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4h2v-2h12zm1-3.5c0 .55-.45 1-1 1s-1-.45-1-1s.45-1 1-1s1 .45 1 1\"/>"
|
||||
},
|
||||
"image-outline": {
|
||||
"body": "<path fill=\"currentColor\" d=\"M19 19H5V5h14m0-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5.04 9.29l-2.75 3.54l-1.96-2.36L6.5 17h11z\"/>"
|
||||
},
|
||||
"qrcode": {
|
||||
"body": "<path fill=\"currentColor\" d=\"M3 11h2v2H3zm8-6h2v4h-2zm-2 6h4v4h-2v-2H9zm6 0h2v2h2v-2h2v2h-2v2h2v4h-2v2h-2v-2h-4v2h-2v-4h4v-2h2v-2h-2zm4 8v-4h-2v4zM15 3h6v6h-6zm2 2v2h2V5zM3 3h6v6H3zm2 2v2h2V5zM3 15h6v6H3zm2 2v2h2v-2z\"/>"
|
||||
},
|
||||
@@ -117,9 +120,6 @@
|
||||
"google": {
|
||||
"body": "<path fill=\"currentColor\" d=\"M21.35 11.1h-9.17v2.73h6.51c-.33 3.81-3.5 5.44-6.5 5.44C8.36 19.27 5 16.25 5 12c0-4.1 3.2-7.27 7.2-7.27c3.09 0 4.9 1.97 4.9 1.97L19 4.72S16.56 2 12.1 2C6.42 2 2.03 6.8 2.03 12c0 5.05 4.13 10 10.22 10c5.35 0 9.25-3.67 9.25-9.09c0-1.15-.15-1.81-.15-1.81\"/>"
|
||||
},
|
||||
"image-outline": {
|
||||
"body": "<path fill=\"currentColor\" d=\"M19 19H5V5h14m0-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5.04 9.29l-2.75 3.54l-1.96-2.36L6.5 17h11z\"/>"
|
||||
},
|
||||
"calendar-search": {
|
||||
"body": "<path fill=\"currentColor\" d=\"M15.5 12c2.5 0 4.5 2 4.5 4.5c0 .88-.25 1.71-.69 2.4l3.08 3.1L21 23.39l-3.12-3.07c-.69.43-1.51.68-2.38.68c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5m0 2a2.5 2.5 0 0 0-2.5 2.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5a2.5 2.5 0 0 0-2.5-2.5M19 8H5v11h4.5c.31.75.76 1.42 1.31 2H5a2 2 0 0 1-2-2V5c0-1.11.89-2 2-2h1V1h2v2h8V1h2v2h1a2 2 0 0 1 2 2v8.03c-.5-.81-1.2-1.49-2-2.03z\"/>"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user