aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-30 15:43:42 +0200
committeruser <user@clank>2026-08-30 15:43:42 +0200
commit37f79de1f52c67fa99af8da8f9f96f5f26604ffb (patch)
treee27d1d83ba4d6b6bf48c87fa38fc9a0a71cb9f5a /include
parentwebdemo: fit with font size, not scale -- a transform misplaces clicks (diff)
downloadslosh-37f79de1f52c67fa99af8da8f9f96f5f26604ffb.tar.gz
slosh-37f79de1f52c67fa99af8da8f9f96f5f26604ffb.tar.xz
slosh-37f79de1f52c67fa99af8da8f9f96f5f26604ffb.zip
web: centre the floating logo in the air above the terminal
A fixed top worked at one viewport height and overlapped the pinned terminal at others: the terminal's top edge is (viewport - the stage's lift padding) / 2 - half the player, which no constant tracks. Measure it instead, centre the logo in what remains, and hide it outright when a short viewport leaves no air -- hiding beats overlapping. Re-placed on resize and by a ResizeObserver on the player mounts, not on the pin: the players are zero-height until their casts arrive, and the pin is a 100vh box that never resizes, so watching it would freeze the placement at the pre-load height.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions