Repository navigation
[Fix/#231] iPhone에서 사물함 미니맵이 막대로 줄어드는 문제 - #232
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
github-actions
Bot
requested review from
jjunh33,
leegain1,
tnals0924 and
xeoxxn
November 17, 2026 03:39
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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
iPhone(Safari·WebView)에서 사물함 칸 선택·내 사물함 화면의 미니맵이 폭 16px 세로 막대로 줄어들어 보이지 않았다.
zoom으로 줄여 그리고, 미니맵 영역 크기가 바뀔 때마다getBoundingClientRect().height / 지금 배율로 원래 높이를 다시 쟀다zoom이 걸린 요소의 크기를 크롬과 다르게 돌려주고, rem 크기(Tailwind 간격·크기는calc(0.25rem * N))에는zoom을 적용하지 않는다❓ 왜 해결해야 하나요?
학생 대부분이 iPhone 앱(WebView)으로 사물함을 신청한다. 미니맵이 없으면 큰 구역에서 지금 어디를 보고 있는지 알 수 없고, 미니맵으로 이동하지도 못한다.
⭐ 어떻게 해결했나요?
zoom대신transform: scale()(기준점 왼쪽 위)로 한다. 미니맵은 스크롤이 없는 고정 상자라 transform으로 충분하고, 단위와 상관없이 모든 브라우저에서 같게 줄어든다offsetHeight로 잰다 — 다시 재도 값이 같아 줄어드는 게 쌓이지 않는다🧩 이 PR의 한계 & 트레이드오프
useLockersPinchZoom)도zoom을 써서 iPhone에서 rem 크기 칸이 제대로 안 커질 수 있다. 스크롤 영역 크기가 같이 바뀌어야 해서 transform으로 바로 바꿀 수 없어 이번 범위에서 뺐다⛓️ 기존 기능에 미치는 영향
LockersMinimap만 바뀐다. 칸 선택·내 사물함 화면 미니맵의 크기 계산, 테두리 위치, 누르기·끌기 이동은 그대로다🔀 Edge Case & 실패 시나리오
Playwright WebKit·Chromium, 375·393px, 응답 가로채기로 확인했다.
📋 검토한 대안과 선택 이유
zoom을 두고 높이 재는 방법만 바꾸기 — WebKit이 rem 크기에zoom을 적용하지 않아 칸이 줄지 않고 상자 밖으로 잘리는 문제가 남는다💬 리뷰 포인트
[c]실제 iPhone(특히 미니)에서 미니맵이 보이는지 한 번 확인 부탁