Repository navigation
fix(pwa): el banner de instalación no tapa el último botón y se puede cerrar - #41
Merged
Merged
Conversation
… cerrar (#34) El banner es position: fixed y no reservaba espacio: en pantallas con scroll (setup con 8 jugadores, resultado con varias coincidencias) tapaba el último botón ~45 px. - Mientras se ve, body.has-install-banner reserva abajo su altura real (--install-banner-h, medida con ResizeObserver: en móvil el texto ocupa dos líneas). - Botón ✕ con aria-label; el cierre se recuerda en localStorage (dinnerMatchInstallDismissed) y el banner no vuelve a salir. Al cerrar o instalar, el foco pasa al control principal de la pantalla. - hidden en vez de style.display inline; bottom respeta el safe area. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué cambia y por qué
.install-banneresposition: fixedabajo y no reservaba espacio. En pantallas con scroll (setup con 8 jugadores, resultado con varias coincidencias) tapaba el último botón unos 45 px, por ejemplo "Jugar otra ronda".body.has-install-bannerañade abajo su altura real (--install-banner-h). Se mide conResizeObserverporque en móvil el texto ocupa dos líneas.aria-label="Cerrar el aviso de instalación"). El cierre se recuerda enlocalStorage(dinnerMatchInstallDismissed) y el banner no vuelve a salir en ese navegador.data-autofocus) en vez de caer en<body>.hiddenen vez destyle.displayinline.bottomrespetaenv(safe-area-inset-bottom)(iPhone con barra de gestos).Rama base
developIssue relacionada
Closes #34
Pruebas
node --test: 55/55.beforeinstallpromptsintético:developCapturas antes/después revisadas: el botón queda entero por encima del banner.
Checklist
node --testpasajs/shared.js🤖 Generated with Claude Code