Skip to content

Conversation

joyswim
Copy link
Contributor

@joyswim joyswim commented Sep 2, 2025

📝작업 내용

맥북 환경에서 룸 UI 스크롤 이슈를 대응합니다.

원인과 해결

  • UserList의 margin-left 만큼 가로 영역이 추가되었습니다. 👉padding-left로 대체
  • 전체 뷰포트 영역에서 가로/세로 스크롤 크기만큼 추가되었습니다. 👉overflow-hidden으로 스크롤 방어

📷스크린샷

image

✨PR Point

WaitingRoom을 w-[50%]로 조정해도 스크롤은 발생합니다.
overflow-hidden로 해결은 되지만, 다른 좋은 방법이 있다면 공유해주세요!

Windows에서 MacbookAir 13인치 기준 테스트를 통과하지만, 실제 맥북 환경에서 테스트 부탁드립니다!

@joyswim joyswim self-assigned this Sep 2, 2025
@joyswim joyswim added 🐛버그 버그 수정 💄디자인 css 스타일링 (UI 변경점) labels Sep 2, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a 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-leftpadding-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

  1. 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.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

맥북 환경에서 발생하는 스크롤 이슈를 해결하기 위한 변경 사항 잘 보았습니다. marginpadding으로 변경하여 레이아웃 문제를 해결하고, 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">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

캐릭터 이미지(<figure>)의 너비가 w-[4rem]에서 반응형 너비(w-[3rem] 2xl:w-[3.5rem])로 변경되었는데, 사용자 이름 영역(div)의 너비는 w-[calc(100%-4rem)]으로 고정되어 있습니다. 이 값은 더 이상 유효하지 않으며, 화면 크기에 따라 레이아웃이 깨질 수 있습니다.

부모 요소에 flex가 적용되어 있으므로, calc() 대신 flex-1 유틸리티를 사용하여 남은 공간을 모두 차지하도록 하는 것이 더 유연하고 안정적인 방법입니다.

Suggested change
<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">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛버그 버그 수정 💄디자인 css 스타일링 (UI 변경점)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant