-
Notifications
You must be signed in to change notification settings - Fork 0
[Fix] 친구 프로필 중첩 스크롤 오류 수정 #48
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
Conversation
Summary of ChangesHello @rhkrwngud445, 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! 이 Pull Request는 친구 프로필 화면에서 발생하던 중첩 스크롤 문제를 해결하여 사용자 인터페이스의 부드러움을 향상시키는 것을 목표로 합니다. 불필요한 스크롤 동작을 제거함으로써 사용자가 프로필 콘텐츠를 보다 직관적으로 탐색할 수 있도록 개선되었습니다. 또한, 애플리케이션의 버전 코드를 업데이트하는 변경사항도 포함되어 있습니다. Highlights
Using Gemini Code AssistThe 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 by creating a comment using either
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 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
|
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
이 PR은 친구 프로필 화면의 중첩 스크롤 오류를 수정하는 것을 목표로 하고 있네요. verticalScroll 수정자를 제거하여 문제를 해결하려는 접근은 올바르지만, 이로 인해 '프로필' 탭에서 스크롤이 동작하지 않는 부작용이 발생할 수 있습니다. 관련하여 '프로필' 탭이 독립적으로 스크롤되도록 수정하는 방안을 제안했습니다. 또한, 사용하지 않는 코드는 주석 처리하기보다 완전히 제거하여 코드 가독성을 높이는 것이 좋습니다. 전반적으로 좋은 수정이며, 제안된 내용을 반영하면 더 견고한 코드가 될 것 같습니다.
| .align(Alignment.TopStart) | ||
| .fillMaxSize() | ||
| .verticalScroll(scrollState) | ||
| // .verticalScroll(scrollState) |
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.
중첩 스크롤 문제를 해결하기 위해 verticalScroll을 제거하는 것은 올바른 접근입니다. 하지만 이럴 경우 '프로필' 탭의 내용이 화면보다 길어지면 스크롤이 불가능해져 UI가 잘리는 문제가 발생할 수 있습니다.
RecordTab은 LazyVerticalGrid를 사용해 자체 스크롤이 되지만, ProfileTab은 일반 Column이므로 스크롤 기능이 필요합니다.
따라서 이 verticalScroll은 제거하고, ProfileTab 컴포저블 내부의 Column에 verticalScroll(rememberScrollState())를 추가하여 '프로필' 탭이 독립적으로 스크롤되도록 하는 것을 권장합니다. 이렇게 하면 두 탭 모두에서 올바른 스크롤 동작을 보장할 수 있습니다.
| val currentTabPosition = remember { mutableIntStateOf(0) } | ||
| val dropdownState = remember { mutableStateOf(false) } | ||
| val scrollState = rememberScrollState() | ||
| // val scrollState = rememberScrollState() |
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.
작업 내용
중첩 스크롤 제거
확인 방법
FriendProfileScreen
참고 사항
버전코드 올린 커밋도 포함되어 있습니다!
관련 이슈