Skip to content

Commit a971c8d

Browse files
committed
Reposition help/SFX buttons above HUD on mobile
Move help and sound-toggle buttons from bottom-anchored (where they overlapped ship list and game log) to top-anchored positioning just below the top HUD bar. Applied in both portrait (max-width: 760px) and landscape (max-height: 560px) media queries.
1 parent cf6c3b0 commit a971c8d

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

static/style.css

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,13 +1249,15 @@ body::before {
12491249
}
12501250

12511251
.help-btn {
1252-
bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 4.1rem);
1252+
top: calc(var(--hud-top-offset) + 0.25rem);
1253+
bottom: auto;
12531254
right: 0.5rem;
12541255
}
12551256

12561257
.sound-btn {
1257-
bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 7rem);
1258-
right: 0.5rem;
1258+
top: calc(var(--hud-top-offset) + 0.25rem);
1259+
bottom: auto;
1260+
right: 3.5rem;
12591261
min-width: 42px;
12601262
padding: 0 0.7rem;
12611263
}
@@ -1351,6 +1353,20 @@ body::before {
13511353
bottom: 0.55rem;
13521354
}
13531355

1356+
.help-btn {
1357+
top: calc(var(--hud-top-offset) + 0.25rem);
1358+
bottom: auto;
1359+
right: 0.5rem;
1360+
}
1361+
1362+
.sound-btn {
1363+
top: calc(var(--hud-top-offset) + 0.25rem);
1364+
bottom: auto;
1365+
right: 3.5rem;
1366+
min-width: 42px;
1367+
padding: 0 0.7rem;
1368+
}
1369+
13541370
.tutorial-tip {
13551371
bottom: calc(var(--hud-bottom-offset) + 0.4rem);
13561372
}

0 commit comments

Comments
 (0)