-
Notifications
You must be signed in to change notification settings - Fork 0
[UI/#156] 제보 상세 화면 제보 이미지간 간격 추가 #157
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
워크스루보고 상세 조회 화면의 이미지 행(Row)에 8dp 수평 간격을 추가하고, 프리뷰 상태에서 두 개의 빈 이미지 URL을 제공하여 미리보기 표시를 개선했습니다. 변경 사항
예상 코드 리뷰 노력🎯 1 (Trivial) | ⏱️ ~3분
시
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
presentation/src/main/java/com/threegap/bitnagil/presentation/reportdetail/ReportDetailScreen.kt (2)
88-90: 이미지 간 간격이 정확하게 적용되었습니다.
Arrangement.spacedBy(8.dp)를 사용하여 이미지 간 간격을 깔끔하게 구현했습니다.다만, 이미지가 많을 경우(4-5개 이상) 화면을 벗어날 수 있으니, 향후 필요시
LazyRow와 가로 스크롤을 고려해보시기 바랍니다.향후 가로 스크롤이 필요한 경우 다음과 같이 개선할 수 있습니다:
- Row( - horizontalArrangement = Arrangement.spacedBy(8.dp), - ) { - state.imageUrls.forEach { imageUrl -> + LazyRow( + horizontalArrangement = Arrangement.spacedBy(8.dp), + ) { + items(state.imageUrls) { imageUrl -> AsyncImage( model = ImageRequest.Builder(LocalContext.current) .data(imageUrl) .build(), modifier = Modifier .size(74.dp) .clip(shape = RoundedCornerShape(9.dp)) .background(color = BitnagilTheme.colors.black), contentScale = ContentScale.Crop, contentDescription = null, ) } }
148-148: 프리뷰에 이미지 URL을 추가하여 레이아웃을 확인할 수 있도록 개선되었습니다.다만, 빈 문자열 대신 플레이스홀더 이미지 URL을 사용하면 프리뷰에서 실제 이미지 표시를 확인할 수 있어 더 유용할 것 같습니다.
예시:
- imageUrls = listOf("", ""), + imageUrls = listOf( + "https://via.placeholder.com/74", + "https://via.placeholder.com/74" + ),
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
presentation/src/main/java/com/threegap/bitnagil/presentation/reportdetail/ReportDetailScreen.kt(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build
[ PR Content ]
제보 상세 화면에서 제보 이미지간 간격을 추가합니다.
Related issue
Screenshot 📸
Work Description
To Reviewers 📢
Summary by CodeRabbit
릴리스 노트
✏️ Tip: You can customize this high-level summary in your review settings.