Skip to content

Commit 10eb9bd

Browse files
Kjubikstronkclaude
andcommitted
Give the bat sky room on iPhone Safari
iPhone Safari keeps its toolbar at the bottom, so the page is shorter than on Android. The greeting card hit its 80% height cap, scrolled, and left the sky a thin strip. On short screens (760px or less) the bottom row of pumpkins, a repeat of the top one, is dropped and the spacing tightens: on an iPhone 13 the sky grows from about 133px to 170px, the whole moon shows, and the card no longer scrolls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 4c8b1a3 commit 10eb9bd

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎src/components/SeasonGreeting.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ export default function SeasonGreeting() {
8989
is upon us
9090
</h2>
9191

92-
<p className="rise rise-2 prose mx-auto mt-3 max-w-[20rem] text-sm text-[var(--color-text)]/75">
92+
<p className="rise rise-2 prose mx-auto mt-3 [@media(max-height:760px)]:mt-2 max-w-[20rem] text-sm text-[var(--color-text)]/75">
9393
the pumpkins have moved in, the bats got into the calendar, and
9494
there&rsquo;s something on the map that wasn&rsquo;t there yesterday.
9595
</p>
9696

97-
<ul className="rise rise-3 mx-auto mt-4 max-w-[18rem] space-y-2 text-left">
97+
<ul className="rise rise-3 mx-auto mt-4 [@media(max-height:760px)]:mt-3 max-w-[18rem] space-y-2 text-left">
9898
<li className="pixel-box-sm flex items-center gap-3 p-2">
9999
<PixelSprite sprite={JACK} size={26} />
100100
<span className="text-sm">your hearts turned into pumpkins overnight</span>
@@ -114,13 +114,15 @@ export default function SeasonGreeting() {
114114
<button
115115
type="button"
116116
onClick={dismiss}
117-
className="rise rise-4 pixel-btn pixel-btn-primary mt-5 w-full px-4 py-3 text-base"
117+
className="rise rise-4 pixel-btn pixel-btn-primary mt-5 [@media(max-height:760px)]:mt-4 w-full px-4 py-3 text-base"
118118
>
119119
let&rsquo;s go
120120
</button>
121121
</div>
122122

123-
<Garland className="rise rise-4 pb-3" />
123+
{/* Dropped on short screens: iPhone Safari keeps its toolbar at the
124+
bottom, and the repeat of the top row was costing the bat sky. */}
125+
<Garland className="rise rise-4 pb-3 [@media(max-height:760px)]:hidden" />
124126
</div>
125127
</dialog>
126128
)

0 commit comments

Comments
 (0)