Skip to content

Commit 6cce616

Browse files
committed
fix: perfectly align start/select button groove depth in landscape mode
1 parent b0dc9c9 commit 6cce616

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/components/GameBoy.astro

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,21 +2311,25 @@ h1 {
23112311
}
23122312

23132313
.console.landscape .meta-group {
2314-
flex-direction: column-reverse; /* Put label on top */
2315-
gap: 2px;
2314+
/* Same absolute positional logic as portrait, but tailored for landscape sizes */
2315+
flex-direction: column;
2316+
width: 24px;
2317+
height: 12px;
23162318
}
23172319

23182320
.console.landscape .meta-group::before {
2319-
top: -3px; /* Adjust for landscape */
2320-
width: 34px;
2321-
height: 28px;
2322-
border-radius: 14px;
2321+
top: -5px; /* Sits exactly 5px above the 12px button */
2322+
left: -5px; /* Sits exactly 5px left of the 24px button */
2323+
width: 34px; /* 24px button + (5px * 2) = 34px */
2324+
height: 22px; /* 12px button + (5px * 2) = 22px */
2325+
border-radius: 11px;
23232326
/* In landscape, buttons are on glass, keep subtlety */
23242327
background: rgba(0,0,0,0.2);
23252328
box-shadow: inset 1px 1px 3px rgba(0,0,0,0.8);
23262329
}
23272330

23282331
.console.landscape .pill-label {
2332+
top: -12px; /* absolute position it *above* the groove in landscape! */
23292333
font-size: 8px; /* Slightly smaller text */
23302334
}
23312335

0 commit comments

Comments
 (0)