Repository navigation
fix: 물리 바닥을 입력 박스 위로 — 쌓인 글자 가림 해결 - #10
Merged
Merged
Conversation
- stage 에 setFloorInset(px) API 추가 — 키보드 대응 바닥의 기반 - 입력 박스 실측 위치(getBoundingClientRect) 기준으로 바닥 배치 - 리사이즈 시 재계산 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013jzX6PJvGgLYvdvXBBRS4m
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.
문제
바닥에 쌓인 글자가 하단 입력 박스에 가려짐.
수정 (파일 3개)
src/lib/stage.ts—setFloorInset(px)API 추가: 물리 바닥을 화면 아래에서 지정한 만큼 올린다. 이후 키보드 대응 동적 바닥(visualViewport)의 기반이 되는 API.src/pages/index.astro— 입력 박스의 실제 위치(getBoundingClientRect)를 재서 바닥을 그 위(+8px)로 배치. 리사이즈 시 재계산. safe-area가 다른 기기에서도 정확하다.src/lib/constants.ts— 바닥-UI 여백 상수WORLD.floorGapPx.PRD §5 레이아웃대로 바닥(═══)이 하단 바 위에 있는 구조가 된다.
확인 방법
머지 후 글자를 쌓으면 입력 박스 위에 쌓인다 — 박스에 가려지는 글자가 없어야 함. 기울이기/흔들기도 새 바닥 기준으로 동작.
Generated by Claude Code