From 7f1de9613ccd6b973bb5433c1ef8caf725a37fcc Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Tue, 22 Sep 2026 12:16:12 +0200 Subject: [PATCH] Map: fixed-width zoom control buttons, tactics panel no longer overlaps them Co-Authored-By: Claude Opus 5 --- assets/map/styles.css | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/assets/map/styles.css b/assets/map/styles.css index 92de178..c10b550 100644 --- a/assets/map/styles.css +++ b/assets/map/styles.css @@ -275,6 +275,15 @@ canvas:active { padding: 8px; } +/* Feste Breite: sonst waere die Leiste so breit wie das breiteste Symbol (z.B. 👁) und + wuerde in das Taktiken-Fenster daneben ragen. 16 + 8 + 46 + 8 + 2 = 80px vom Rand. */ +#zoom-controls button { + width: 46px; + padding-left: 0; + padding-right: 0; + text-align: center; +} + button { background: rgba(50, 50, 80, 0.8); border: 1px solid var(--border-color); @@ -480,7 +489,7 @@ button:hover { #tactic-panel { position: absolute; top: 16px; - right: 76px; + right: 90px; /* neben der Steuerleiste (80px) mit 10px Abstand */ width: 290px; max-height: calc(100% - 90px); display: flex; @@ -939,13 +948,14 @@ button.tp-item.active { } #zoom-controls button { - padding: 6px 10px; + width: 40px; + padding: 6px 0; } #tactic-panel { top: 60px; left: 8px; - right: 64px; + right: 68px; /* Steuerleiste: 8 + 4 + 40 + 4 + 2 = 58px, dazu 10px Abstand */ width: auto; max-height: 45%; padding: 6px 8px;