Conversation
📝 WalkthroughWalkthrough예약금 결제 모달의 스크롤 불가 버그를 수정하는 변경입니다. 접근성 레이블을 정확히 업데이트하고, 모달 레이아웃을 flex 구조로 개선하여 내부 콘텐츠 영역이 스크롤 가능하도록 리구성했습니다. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 분 Poem
📝 코드 리뷰 피드백✅ 잘 개선된 부분
💡 체크포인트
Great job 이 버그 수정으로 사용자들이 결제 버튼에 쉽게 접근할 수 있을 거 같아요! 🚀 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/components/reservation/modals/PaymentModal.tsx (1)
223-223: 모바일 viewport 대응으로dvh병행을 권장합니다.
max-h-[90vh]는 모바일 브라우저(UI 바 변화)에서 실제 가시 높이와 어긋날 수 있어요.dvh를 병행하면 하단 버튼 접근성이 더 안정적입니다.예시 코드
- "relative z-10 flex w-[92vw] max-w-md max-h-[90vh] flex-col rounded-2xl bg-white shadow-xl", + "relative z-10 flex w-[92vw] max-w-md max-h-[90vh] max-h-[90dvh] flex-col rounded-2xl bg-white shadow-xl",🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/components/reservation/modals/PaymentModal.tsx` at line 223, The modal container string in PaymentModal (the class list containing "relative z-10 flex w-[92vw] max-w-md max-h-[90vh] ...") should be updated to account for mobile viewport changes by adding a dvh-based max-height fallback; modify the class list in PaymentModal.tsx so it includes a dvh utility (e.g., include max-h-[90dvh] alongside max-h-[90vh] or replace with a combined responsive approach) to ensure the modal respects dynamic viewport height on mobile browsers and keeps bottom buttons accessible.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/components/reservation/modals/PaymentModal.tsx`:
- Line 223: The modal container string in PaymentModal (the class list
containing "relative z-10 flex w-[92vw] max-w-md max-h-[90vh] ...") should be
updated to account for mobile viewport changes by adding a dvh-based max-height
fallback; modify the class list in PaymentModal.tsx so it includes a dvh utility
(e.g., include max-h-[90dvh] alongside max-h-[90vh] or replace with a combined
responsive approach) to ensure the modal respects dynamic viewport height on
mobile browsers and keeps bottom buttons accessible.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 878edc95-335d-48dc-954f-de1c19c6f9bb
📒 Files selected for processing (1)
src/components/reservation/modals/PaymentModal.tsx
* [Docs/#118] Issue/PR 템플릿 수정 (프로젝트 재정비) (#119) * docs: PR 템플릿 수정 * docs: issue/PR template 수정 * docs: 템플릿 수정에 맞게 Readme변경 * refactor: 사용되지 않는 파일 삭제 * refactor: 미사용 ProfileAvatar 컴포넌트를 MyInfoPage에 적용 * refactor: 사용되지 않는 패키지 삭제 * refactor: 사용되지 않는 export 정리 * 사용되지 않는 함수 toRestaurantSummary 삭제 * refactor: 좌석 타입 라벨을 table.ts 공통 상수로 통합 * refactor: 사용되지 않는 export 타입, 인터페이스 정리 * refactor: 사용되지 않는 타입, 인터페이스 삭제 * [Setting/#121] ESLint/Prettier 설정 및 useEffect 비동기 랜더링 에러 수정 (#123) * setting: ESLint/Prettier 설정 및 useEffect 비동기 랜더링 에러 수정 * fix: vercel build에러 수정 * fix: 코드래빗 일부수정 * fix: 코드래빗 수정사항 반영 * fix: lint error 수정 (#126) * [Setting/#124] Husky 및 lint-staged 기반 pre-commit 자동 검사 환경 설정 (#127) * fix: lint error 수정 * setting: Husky 도입 및 pre-commit lint 검사 설정 * setting: lint-staged 및 자동 포맷 검사 설정 * fix: coderabbit 반영 * fix: coderabbit 수정사항 반영 * [Setting/#128] GitHub Actions CI 환경설정 추가 (#129) * setting: GitHub Actions CI 설정 추가 * fix: GitHub Actions pnpm 버전 중복 지정으로 인한 오류 수정 * fix: node버전 기존 24에서 22로 수정 * [Setting/#130] ESLint warning 정리 및 any 타입 제거 리팩토링 (#133) * fix:any타입 에러 수정중 * fix: lint 에러 수정중(중간저장목적) * fix: lint에러 수정중(중간저장목적) * fix: lint에러 수정중 중간 저장 * fix: lint에러 수정중 중간점검 * fix: lint 에러 수정완료 * fix: build 에러 수정 * fix: 코드래빗 수정사항 반영 * fix: 화면 오류확인해서 삭제했던 globals.css 복구 * fix: 코드래빗 수정사항 반영 * fix: 예약금결제 스크롤 에러 수정 (#135) --------- Co-authored-by: Dew <eidnwq@gmail.com>
🔢 관련 이슈 링크
📌 변경사항PR
💻 작업내용
예약금 결제 수단 선택 에서 스크롤이 되지않아서 결제버튼이 보이지 않는 에러가 발생.
모달 하단 영역이 짤리면서 접근이 어려운 문제였기에 수정 진행.
변경전
변경후
🪧 미완성 작업
N/A
🤔 논의 사항 및 참고 사항
현재는 내부 스크롤이 보이도록 유지했는데, 혹시 스크롤바에 대해서는 추후 디자인 변경에 맞춰서 추가 논의 진행하면 될것같습니다
✅ 체크리스트