lichess-org/lila

Start button on embedded puzzles scales poorly to mobile

Geschlossen

#16.748 geöffnet am 08.01.2025

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (2.661 Forks)batch import
good first issueno scala

Repository-Metriken

Stars
 (18.196 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 18h) (151 gemergte PRs in 30 T)

Beschreibung

I read this post and found the start buttons to be misplaced on my Motorola Razr 50 Ultra, unfolded, using Firefox for Android. See screenshot showing embedded puzles.

I am seeing similar results when changing it to iPhone SE using Chromium DevTools. However, I'd be cautious in relying on DevTools as matching the resolution didn't emulate my Android view 1:1. The font that Android carries clearly affects size of the box in CSS.

You could decrease the horizontal padding on the button to fix this, unless you wanted to do it another way - as it may e.g. not meet your aesthetic goals.

The CSS controlling the widget can be found in this file: https://github.com/lichess-org/lila/blob/df66483def8cc81e5fea9aa37023a09b7cd09874/ui/bits/css/build/bits.lpv.scss#L6-L21

Contributor Guide