Repository navigation
fix(web): 데스크톱 창 모바일 폭에서 콜밴 화면 접근 가능하게 수정 - #76
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
koin-web | baf0e80 | Nov 11 2026, 03:40 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
koin-api | baf0e80 | Nov 11 2026, 03:40 PM |
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.
변경
데스크톱 브라우저에서 창을 모바일 폭으로 줄이면 카테고리에 콜밴팟 모집이 보이지만, 누르면 홈으로 이동했습니다. 콜밴 화면이 데이터를 불러올 때는 User-Agent 기준 기기로, 화면이 뜬 뒤에는 화면 폭으로 판단해 두 기준이 어긋났기 때문입니다.
콜밴 화면 접근을 기기 종류 대신 화면 폭(576px 이하)으로만 판단하도록 바꿨습니다.
routes/callvan.index.tsxload): 하이드레이션 이후 이동은 브라우저에서 실행되므로matchMedia로 실제 폭을 확인하고, 넓은 창이면 홈으로 리다이렉트합니다. User-Agent 기반 302 리다이렉트는 없앴습니다.useMediaQuery값은 UA 기준 서버 값일 수 있어matchMedia로 다시 확인합니다.useMediaQuery의 모바일 기준 쿼리(MOBILE_QUERY)를 export해 같은 기준을 씁니다.검증
pnpm typecheck,pnpm lint,pnpm format:check,pnpm --filter @koin/web test통과.남은 전제
/callvan새로고침/callvan직접 접근 시 홈으로 이동/callvan을 직접 열면 이전에는 서버가 바로 홈으로 보냈지만, 이제는 콜밴 화면이 잠깐 그려진 뒤 홈으로 이동합니다.