Conversation
밖의 영역 스크롤 되는 버그 수정 모달 내부 content 스크롤 숨김 처리 content 가려짐 방지를 위한 margin 추가
content 가려짐 방지를 위한 margin 추가
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughCompletedGroupModal에 모달 마운트/언마운트 시 body 스크롤을 비활성/복원하는 useEffect가 추가되었고, 콘텐츠 그리드/스크롤바 스타일이 조정되었습니다. MyGroupModal에는 콘텐츠 그리드 하단 여백이 추가되었습니다. 데이터 흐름이나 API 호출은 변경되지 않았습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as User
participant UI as CompletedGroupModal
participant DOM as document.body
User->>UI: 모달 열기
activate UI
UI->>DOM: useEffect on mount: body.style.overflow = "hidden"
note right of UI: 모달 표시 중 스크롤 비활성
User-->>UI: 모달 닫기
UI->>DOM: cleanup on unmount: body.style.overflow = ""
deactivate UI
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/components/group/CompletedGroupModal.tsx (1)
24-29: 중첩 모달 시 body scroll unlock 타이밍 이슈 가능성현재 Line 24~29에서 모달이 언마운트될 때마다
document.body.style.overflow를 바로 비워 두고 있습니다. 이 패턴은 다른 모달이 동시에 떠 있는 경우(예: 이미 열린 모달 A 위에 모달 B를 연 뒤 B만 닫는 경우)에도 배경 스크롤이 풀려 버리는 상황을 만들 수 있습니다. 공용 훅으로 추출하거나 reference count를 두어 “마지막 모달이 닫힐 때만” overflow를 복원하는 식으로 보완해 주시면 더 안전할 것 같습니다.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
src/components/group/CompletedGroupModal.tsx(2 hunks)src/components/group/MyGroupModal.tsx(1 hunks)
🔇 Additional comments (2)
src/components/group/MyGroupModal.tsx (1)
273-288: 하단 여백 추가로 컨텐츠 가림 최소화 👍Line 281의
margin-bottom: 60px;덕분에 마지막 카드나 스피너가 모달 하단 요소에 겹쳐 보이지 않을 것 같아요. 의도한 문제를 잘 해결한 것 같습니다.src/components/group/CompletedGroupModal.tsx (1)
130-150: 콘텐츠 영역 스크롤 UX 개선 확인Line 136의
margin-bottom: 70px;과 Line 145~149의 스크롤바 숨김 처리로 완료 모달의 하단 겹침 이슈와 스크롤 노출 문제를 동시에 잡은 것 같아요. 시각적으로 더 정돈될 듯합니다.
📝작업 내용
완료된 모임방 view 수정
내 모임방 view 수정
Summary by CodeRabbit
버그 수정
스타일