Skip to content

Commit 0ae58c5

Browse files
committed
style: fix horizontal centering width bounds for landscape labels
1 parent e726fa7 commit 0ae58c5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/GameBoy.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,6 +2332,8 @@ h1 {
23322332
top: -18px; /* Push absolute positioned text cleanly above the groove (-5px) */
23332333
left: 50%;
23342334
transform: translateX(-50%);
2335+
width: auto; /* Override portrait 100% width bound which clips to the 24px parent */
2336+
white-space: nowrap; /* Prevent text from wrapping inside the parent constraints */
23352337
font-size: 8px; /* Slightly smaller text */
23362338
}
23372339

0 commit comments

Comments
 (0)