Skip to content

Conversation

@stopstone
Copy link
Contributor

작업 내용

  • 프로필 상세 정보 기념일 textArea 영역 수정
  • 프로필 상세 정보 수정 기념일 추가 영역의 간격 확인 후 수정

- 친구 프로필 수정 화면에서 기념일 섹션과 다음 섹션 사이의 간격을 `32.dp`에서 `16.dp`로 줄여 불필요한 공백을 통일하였습니다.
- 친구 프로필 화면의 기념일 정보 섹션에서, 기념일 종류(`category`)와 날짜(`content`) 텍스트가 서로 다른 높이에 표시되던 문제를 수정했습니다.
- `category` 텍스트에 `align(Alignment.Top)`을 적용하고, `content` 텍스트에 `padding(start = 54.dp)`를 추가하여 두 텍스트가 상단 기준으로 정렬되도록 레이아웃을 조정했습니다.
@gemini-code-assist
Copy link

Summary of Changes

Hello @stopstone, 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은 프로필 상세 및 편집 화면의 UI/UX를 개선하는 데 중점을 둡니다. 기념일 관련 정보의 시각적 표현을 다듬기 위해 패딩과 간격을 조정하여, 특히 기념일 텍스트 영역과 추가 영역에서 보다 일관되고 사용자 친화적인 레이아웃을 보장합니다.

Highlights

  • 프로필 상세 화면 UI 개선: 기념일 정보 표시를 위해 ProfileDetailInfo 컴포저블 내 텍스트 정렬 및 패딩을 조정하여 가독성과 레이아웃을 개선했습니다.
  • 프로필 편집 화면 간격 조정: 기념일 추가 영역의 수직 간격을 32dp에서 16dp로 줄여 전체적인 레이아웃의 밀도를 최적화했습니다.
  • 기념일 관련 모델/UIState 통합: Anniversary 모델과 AnniversaryUIState를 관련 화면에 임포트하여 기념일 데이터 처리 및 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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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

안녕하세요. 프로필 수정 화면의 패딩을 수정하는 PR을 리뷰했습니다.

전반적으로 기념일 관련 UI의 간격을 조정하여 디자인을 개선한 점이 좋습니다. FriendProfileScreen.kt에서 기념일 등 여러 줄로 표시될 수 있는 항목의 레이아웃을 수정하셨는데, 이 과정에서 content 텍스트 정렬에 문제가 발생할 수 있는 부분을 발견했습니다. Arrangement.SpaceBetweenpadding을 함께 사용하는 현재 방식 대신, 보다 견고한 2단 레이아웃을 구현하는 방법을 제안하는 코멘트를 남겼습니다. 해당 코멘트를 확인하시고 레이아웃을 개선하는 것을 고려해 보시기 바랍니다.

Comment on lines 679 to 690
Text(
category,
modifier = Modifier.align(Alignment.Top),
text = category,
style = NearTheme.typography.B2_14_MEDIUM,
color = NearTheme.colors.GRAY01_888888,
)
Text(
content,
modifier = Modifier.padding(start = 54.dp),
text = content,
style = NearTheme.typography.B2_14_MEDIUM,
color = NearTheme.colors.BLACK_1A1A1A,
)

Choose a reason for hiding this comment

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

medium

현재 RowhorizontalArrangement = Arrangement.SpaceBetween 속성과 함께 content Textmodifier = Modifier.padding(start = 54.dp)를 사용하는 방식은 content 내용들을 세로로 정렬하는 데 효과적이지 않을 수 있습니다. SpaceBetween은 두 번째 자식 요소를 오른쪽 끝으로 밀어내므로, content Text는 항상 오른쪽에 정렬됩니다. 이로 인해 category의 길이에 따라 content의 시작 위치가 달라져 일관된 UI를 제공하기 어렵습니다.

또한, 54.dp는 의미를 알기 어려운 '매직 넘버'이므로 사용을 지양하는 것이 좋습니다.

더 견고한 2단 레이아웃을 구현하려면 부모 Row에서 horizontalArrangement를 제거하고, category TextModifier.width()로 고정 너비를 주거나 Spacer를 사용하여 컴포넌트 사이의 간격을 조절하는 방법을 고려해 보세요. 예를 들면 다음과 같습니다.

Row(
    modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 16.dp),
    verticalAlignment = Alignment.Top
) {
    Text(
        modifier = Modifier.width(80.dp), // 카테고리에 고정 너비 부여
        text = category,
        // ...
    )
    Spacer(modifier = Modifier.width(16.dp)) // 카테고리와 내용 사이 간격
    Text(
        modifier = Modifier.weight(1f), // 내용이 남은 공간을 채우도록 함
        text = content,
        // ...
    )
}

이러한 리팩토링을 통해 더 예측 가능하고 유지보수하기 쉬운 레이아웃을 만들 수 있습니다.

@stopstone stopstone merged commit 2feb4e2 into dev Dec 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants