Tour: the last card stays in the middle on phones instead of slipping off to the top left
Reported in Discord: "Das letzte Fenster switcht nach oben links, sodass es nicht komplett lesbar ist".
The steps without a target (welcome and "Das war's!") are centered. On phones the step before
("Fehler gefunden?") docks the card to the top edge, and place() added "centered" without removing
"docked"/"docked-top". Their left/top rules (declared later, also !important) won over the centering
while translate(-50%, -50%) stayed, so the card sat half outside the screen at the top left. The same
happened when going back from step 2 to the welcome step. place() now drops both classes first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
03597f14ad
commit
584b83b99b
1 changed files with 3 additions and 0 deletions
|
|
@ -86,6 +86,9 @@
|
||||||
if (!current) {
|
if (!current) {
|
||||||
spotlight.classList.remove('visible');
|
spotlight.classList.remove('visible');
|
||||||
backdrop.classList.add('dim');
|
backdrop.classList.add('dim');
|
||||||
|
// Vom vorigen Schritt kann die Karte auf dem Handy noch angedockt sein - dessen
|
||||||
|
// left/top-Regeln stechen die Mitte aus und schieben die Karte nach oben links.
|
||||||
|
card.classList.remove('docked', 'docked-top');
|
||||||
card.classList.add('centered');
|
card.classList.add('centered');
|
||||||
card.style.left = '';
|
card.style.left = '';
|
||||||
card.style.top = '';
|
card.style.top = '';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue