Map: fixed-width zoom control buttons, tactics panel no longer overlaps them
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
e9b6a820a8
commit
7f1de9613c
1 changed files with 13 additions and 3 deletions
|
|
@ -275,6 +275,15 @@ canvas:active {
|
||||||
padding: 8px;
|
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 {
|
button {
|
||||||
background: rgba(50, 50, 80, 0.8);
|
background: rgba(50, 50, 80, 0.8);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
|
|
@ -480,7 +489,7 @@ button:hover {
|
||||||
#tactic-panel {
|
#tactic-panel {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 16px;
|
top: 16px;
|
||||||
right: 76px;
|
right: 90px; /* neben der Steuerleiste (80px) mit 10px Abstand */
|
||||||
width: 290px;
|
width: 290px;
|
||||||
max-height: calc(100% - 90px);
|
max-height: calc(100% - 90px);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -939,13 +948,14 @@ button.tp-item.active {
|
||||||
}
|
}
|
||||||
|
|
||||||
#zoom-controls button {
|
#zoom-controls button {
|
||||||
padding: 6px 10px;
|
width: 40px;
|
||||||
|
padding: 6px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tactic-panel {
|
#tactic-panel {
|
||||||
top: 60px;
|
top: 60px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
right: 64px;
|
right: 68px; /* Steuerleiste: 8 + 4 + 40 + 4 + 2 = 58px, dazu 10px Abstand */
|
||||||
width: auto;
|
width: auto;
|
||||||
max-height: 45%;
|
max-height: 45%;
|
||||||
padding: 6px 8px;
|
padding: 6px 8px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue