-
Notifications
You must be signed in to change notification settings - Fork 0
[QA] 프로필 수정 화면 패딩 수정 #71
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
현재
Row의horizontalArrangement = Arrangement.SpaceBetween속성과 함께contentText에modifier = Modifier.padding(start = 54.dp)를 사용하는 방식은 content 내용들을 세로로 정렬하는 데 효과적이지 않을 수 있습니다.SpaceBetween은 두 번째 자식 요소를 오른쪽 끝으로 밀어내므로,contentText는 항상 오른쪽에 정렬됩니다. 이로 인해category의 길이에 따라content의 시작 위치가 달라져 일관된 UI를 제공하기 어렵습니다.또한,
54.dp는 의미를 알기 어려운 '매직 넘버'이므로 사용을 지양하는 것이 좋습니다.더 견고한 2단 레이아웃을 구현하려면 부모
Row에서horizontalArrangement를 제거하고,categoryText에Modifier.width()로 고정 너비를 주거나Spacer를 사용하여 컴포넌트 사이의 간격을 조절하는 방법을 고려해 보세요. 예를 들면 다음과 같습니다.이러한 리팩토링을 통해 더 예측 가능하고 유지보수하기 쉬운 레이아웃을 만들 수 있습니다.