fix(chat): DM 수신자 목록 헤더를 정리한다
This commit is contained in:
@@ -492,7 +492,9 @@ struct UserCreatorChatRecipientSearchView: View {
|
|||||||
} else {
|
} else {
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
LazyVStack(alignment: .leading, spacing: 0) {
|
LazyVStack(alignment: .leading, spacing: 0) {
|
||||||
sectionHeader
|
if viewModel.isSearchMode || !viewModel.items.isEmpty {
|
||||||
|
sectionHeader
|
||||||
|
}
|
||||||
|
|
||||||
ForEach(viewModel.items) { item in
|
ForEach(viewModel.items) { item in
|
||||||
UserCreatorChatRecipientRow(item: item) {
|
UserCreatorChatRecipientRow(item: item) {
|
||||||
@@ -514,8 +516,10 @@ struct UserCreatorChatRecipientSearchView: View {
|
|||||||
if viewModel.isSearchMode {
|
if viewModel.isSearchMode {
|
||||||
HStack(spacing: SodaSpacing.s4) {
|
HStack(spacing: SodaSpacing.s4) {
|
||||||
Text(I18n.UserCreatorChatRecipientSearch.searchResultLabel)
|
Text(I18n.UserCreatorChatRecipientSearch.searchResultLabel)
|
||||||
|
.appFont(.body2)
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
Text("\(viewModel.items.count)")
|
Text("\(viewModel.items.count)")
|
||||||
|
.appFont(.body2)
|
||||||
.foregroundColor(Color.gray500)
|
.foregroundColor(Color.gray500)
|
||||||
}
|
}
|
||||||
.appFont(size: 14, weight: .bold)
|
.appFont(size: 14, weight: .bold)
|
||||||
@@ -523,7 +527,7 @@ struct UserCreatorChatRecipientSearchView: View {
|
|||||||
.frame(maxWidth: .infinity, minHeight: 40, alignment: .leading)
|
.frame(maxWidth: .infinity, minHeight: 40, alignment: .leading)
|
||||||
} else {
|
} else {
|
||||||
Text(I18n.UserCreatorChatRecipientSearch.sectionTitle)
|
Text(I18n.UserCreatorChatRecipientSearch.sectionTitle)
|
||||||
.appFont(size: 14, weight: .bold)
|
.appFont(.body1)
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.padding(.horizontal, SodaSpacing.s14)
|
.padding(.horizontal, SodaSpacing.s14)
|
||||||
.frame(height: 40, alignment: .leading)
|
.frame(height: 40, alignment: .leading)
|
||||||
|
|||||||
Reference in New Issue
Block a user