Repository navigation
✨ Feat: 공유 보드 웹 페이지를 앱 보드처럼 이동/확대 가능하게 변경 - #265
Merged
Merged
Conversation
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.
🔍 PR 요약
공유 링크로 연 보드 웹 페이지를 앱 보드처럼 끌어서 이동하고 확대·축소할 수 있게 바꾸고, 브라우저에서 어색하던 상단 여백을 맞췄습니다.
🧠 의도 및 배경
#261에서 만든 공유 보드 페이지는 보드 전체를 한 화면에 맞춰 보여주는 고정 화면이었는데, 보드 주인이 앱에서 보는 것과 같은 방식으로 볼 수 있게 했습니다.
또 시안의 상단 여백(64px)은 앱 상태바를 포함한 값이라, 상태바와 주소창이 화면 밖에 있는 모바일 브라우저에서는 헤더가 많이 내려와 보였습니다.
🛠️ 주요 변경 사항
안전 영역 + 16px로 바꾸되, 브라우저에서는 최소 32px를 두었습니다. 앱 화면은 기존과 같습니다.봐주셨으면 하는 부분
BoardCanvas는 편집 기능과 로그인 데이터에 묶여 있어 그대로 쓰지 않고, 보기 전용 제스처 훅(useViewOnlyBoardGesture)을 새로 만들었습니다. 카메라 계산은 앱과 같은 함수(panCamera,computeBoardPinchZoom,zoomCamera,zoomCameraTo)를 씁니다.ShareBoardScene은 앱의 공유 이미지 카드에서도 씁니다. 이번 변경은interactive(공유 웹 페이지)일 때만 적용돼서 카드 모양은 그대로입니다.SharedRecapView에 선택 proppaddingTop을 추가했습니다. 넘기지 않으면 기존처럼 40px라서 리캡 공유 페이지(/share/recap)는 바뀌지 않습니다.이번 PR에 없는 것
theme-color와 배경색으로 시도했지만 iOS 사파리가 반영하지 않아 뺐습니다. 팀에서 방향을 정한 뒤 따로 진행합니다.