Sheet no celular: corpo fica atrás da barra inferior do navegador (ancora no layout viewport, não no visual viewport)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 6
- Fork
- 3
- Merge trung bình
- 5 giờ 21 phút
- Pull request đã merge (30 ngày)
- 378
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codeatlasdev/ui
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
codeatlasdev/ui#1340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:a11y area:components bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
codeatlasdev/ui#1336 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
codeatlasdev/ui#1329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
codeatlasdev/ui#1292 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:components enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
codeatlasdev/ui#1198 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codeatlasdev/ui
Issue tương tự
-
bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
CivicTechWR/accessible-housing-portal#578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
sandbox-quantum/switch#2163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lolimmlost/aidj#433 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test: ipcShownDialogKeys.test.tsx can fail the unit run with 'window is not defined' after it endsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày