-
Notifications
You must be signed in to change notification settings - Fork 2
맥북 환경에서 룸 UI 스크롤 이슈 #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
맥북 환경에서 룸 UI 스크롤 이슈 #225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @joyswim, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
이 PR은 맥북 환경에서 발생하는 사용자 인터페이스의 레이아웃 및 스크롤 문제를 해결하는 데 중점을 둡니다. CSS 속성을 미세 조정하고 특정 컴포넌트의 크기를 최적화하여 원치 않는 스크롤바를 제거하고 전반적인 사용자 경험을 향상시키는 것이 목표입니다.
Highlights
- 맥북 환경 UI 스크롤 이슈 해결: 맥북 환경에서 발생하는 룸 UI 스크롤 문제를 해결하기 위해 CSS 속성을 조정했습니다.
- 레이아웃 및 간격 조정: UserList의
margin-left
를padding-left
로 변경하여 가로 영역 문제를 해결하고, 전체 뷰포트의 불필요한 스크롤을 방지하기 위해overflow-hidden
을 적용했습니다. - UI 컴포넌트 일관성 및 반응형 개선: 버튼 크기를 일관되게 조정하고 (
xl
에서lg
로), UserInfoCard의 높이와 이미지 너비를 반응형으로 개선하여 다양한 화면 크기에서 UI가 잘 보이도록 했습니다.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
맥북 환경에서 발생하는 스크롤 이슈를 해결하기 위한 변경 사항 잘 보았습니다. margin
을 padding
으로 변경하여 레이아웃 문제를 해결하고, overflow-hidden
을 사용하여 스크롤을 방지하는 접근은 타당합니다. PR 설명에서 overflow-hidden
외에 다른 좋은 방법이 있는지 질문 주셨는데, 현재 접근은 의도치 않은 스크롤을 막는 효과적인 해결책 중 하나입니다. 다만, 이 방법은 다른 잠재적인 오버플로우 문제를 가릴 수 있으므로, 근본 원인을 찾아 해결하는 것이 가장 좋습니다. 리뷰 중 UserInfoCard
컴포넌트에서 너비 계산에 잠재적인 이슈를 발견했는데, 이 부분이 스크롤 문제의 원인 중 하나일 수 있습니다. 자세한 내용은 파일 리뷰를 참고해주세요.
<figcaption className="sr-only">{`${fileName} 캐릭터 이미지`}</figcaption> | ||
</figure> | ||
<div className="w-[calc(100%-4rem)] pl-3 pr-2 flex items-center font-medium justify-between gap-1"> | ||
<div className="w-[calc(100%-4rem)] flex items-center font-medium justify-between pl-2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
캐릭터 이미지(<figure>
)의 너비가 w-[4rem]
에서 반응형 너비(w-[3rem] 2xl:w-[3.5rem]
)로 변경되었는데, 사용자 이름 영역(div
)의 너비는 w-[calc(100%-4rem)]
으로 고정되어 있습니다. 이 값은 더 이상 유효하지 않으며, 화면 크기에 따라 레이아웃이 깨질 수 있습니다.
부모 요소에 flex
가 적용되어 있으므로, calc()
대신 flex-1
유틸리티를 사용하여 남은 공간을 모두 차지하도록 하는 것이 더 유연하고 안정적인 방법입니다.
<div className="w-[calc(100%-4rem)] flex items-center font-medium justify-between pl-2"> | |
<div className="flex-1 flex items-center font-medium justify-between pl-2"> |
📝작업 내용
맥북 환경에서 룸 UI 스크롤 이슈를 대응합니다.
원인과 해결
📷스크린샷
✨PR Point
WaitingRoom을 w-[50%]로 조정해도 스크롤은 발생합니다.
overflow-hidden
로 해결은 되지만, 다른 좋은 방법이 있다면 공유해주세요!Windows에서 MacbookAir 13인치 기준 테스트를 통과하지만, 실제 맥북 환경에서 테스트 부탁드립니다!