diff --git a/src/routes/learn/game/+page.svelte b/src/routes/learn/game/+page.svelte index 9a34fc0..19adfb1 100644 --- a/src/routes/learn/game/+page.svelte +++ b/src/routes/learn/game/+page.svelte @@ -38,6 +38,8 @@ const calm = $derived(reducedMotion()); const showCoords = $derived(prefs.coordinates !== false); const marks = Object.keys(CALLOUTS).map(Number).filter((n) => n > 0); + /** The height of the Back and Next bar, which on a phone is fixed at the foot of the screen and must leave room beneath the boards. */ + let barHeight = $state(0); /** A piece tapped to read about it and to see where it could go from here, before the game shows what it did. */ let inspected = $state(null); @@ -80,7 +82,7 @@ -
+
Back to the hall · Learn the pieces · How to play · The rules

A game told

@@ -104,7 +106,7 @@ {/if} {#if callout}

{callout}

{/if} -
+
{#if ply === TOLD_MOVES.length}Play a drake{/if} @@ -160,7 +162,7 @@ bottom: 0; z-index: 4; margin: 0; - padding: 0.55rem var(--gutter); + padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom, 0px)); background: var(--slate-deep); border-top: 1px solid var(--rule); } @@ -175,7 +177,7 @@ } main { - padding-bottom: 4.5rem; + padding-bottom: calc(var(--bar, 6rem) + 1.5rem); } }