Sheet no celular: corpo fica atrás da barra inferior do navegador (ancora no layout viewport, não no visual viewport)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
Read Sheet.svelte in version 4.6.0 and the viewport script and contracts in related issues #1108 and #1109. Trace how the sheet's bottom position and maximum height use --ca-vh, then check how Sheet, bottom-mode Drawer, and full-screen mobile Dialog share that behavior. Add the Playwright WebKit case described in the issue; done means the body can scroll to its last row while it remains above the visual viewport.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Sintoma (iPhone, navegador com barra inferior, R2K em produção)
Negociações no celular › faixa de etapas › "Etapas do funil" (Sheet da lib, StageSheet.svelte na R2K). O sheet abre, mas só o cabeçalho (alça, título, descrição, ×) aparece acima da barra inferior do navegador; a lista de etapas fica atrás da barra e não dá para rolar até ela. O fundo fica borrado/escurecido normalmente.
- Versão:
@codeatlasdev/ui4.6.0. - Navegador: iOS, navegador com barra de ferramentas inferior flutuante (voltar/avançar/"Perguntar"/abas). No Safari com a barra de endereço embaixo o risco é o mesmo.
- Captura: cabeçalho do sheet visível entre y≈1250 e y≈1425 (de 1568 px da captura); a primeira linha da lista está cortada pela barra.
Leitura do código (Sheet.svelte, 4.6.0)
dialog.ca-sheet { inset: auto 0 0 0; max-height: min(calc(var(--ca-vh) * 0.88), 720px); }
.ca-sheet__footer/body { padding-bottom: calc(... + var(--ca-safe-bottom)); }
- O sheet ancora em
bottom: 0do layout viewport. Quando o navegador desenha a barra inferior por cima da página, o fundo do layout viewport fica atrás dela, eenv(safe-area-inset-bottom)(--ca-safe-bottom) não cobre a barra do navegador, só a área do home indicator. --ca-vhtambém segue o layout viewport, então a altura máxima conta espaço que não está visível.
Proposta
- Ancorar e dimensionar o sheet pelo visual viewport:
bottom=layoutHeight - (visualViewport.offsetTop + visualViewport.height),max-heightsobrevisualViewport.height(atualizar emresize/scrolldovisualViewport). Cabe no script de viewport de #1109 (--ca-app-h,viewport-gap) e no contrato de #1108 (--ca-bottom-clearance). - Alternativa só CSS:
max-heightemdvh/svhebottom: calc(100lvh - 100dvh)não resolve barra flutuante sobreposta; por isso o visual viewport. - Teste: Playwright WebKit com
visualViewportmenor que o layout viewport (emular barra inferior de ~80 px) — a última linha do corpo do sheet tem que ficar inteira acima devisualViewport.height, e o corpo tem que rolar até ela.
Aceite
- Em iPhone com barra inferior do navegador (Safari e navegadores de terceiros), o corpo inteiro do sheet é alcançável; nada fica atrás da barra.
- Vale para
Sheet,Drawerem modo inferior eDialogem tela cheia no celular.
Relacionadas: #1108, #1109, #1084.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6
- Forks
- 3
- Ø Merge
- 5 Std. 21 Min.
- Gemergte PRs (30 T.)
- 378
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codeatlasdev/ui
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
codeatlasdev/ui#1340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:a11y area:components bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
codeatlasdev/ui#1336 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
codeatlasdev/ui#1329 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
codeatlasdev/ui#1292 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:components enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
codeatlasdev/ui#1198 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codeatlasdev/ui
Ähnliche Issues
-
bug frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
CivicTechWR/accessible-housing-portal#578 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
sandbox-quantum/switch#2163 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
lolimmlost/aidj#433 ·
Maintainer antworten meist innerhalb von 1 Tag
-
test: ipcShownDialogKeys.test.tsx can fail the unit run with 'window is not defined' after it endsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag