patch msg
This commit is contained in:
parent
2e98a3e4fb
commit
73bd36e428
@ -148,7 +148,7 @@ struct PrivateChatView: View {
|
||||
|
||||
private var messagesList: some View {
|
||||
ScrollView {
|
||||
LazyVStack(alignment: .leading, spacing: 12) {
|
||||
LazyVStack(alignment: .leading, spacing: 0) {
|
||||
Color.clear
|
||||
.frame(height: 1)
|
||||
.id(bottomAnchorId)
|
||||
@ -183,7 +183,7 @@ struct PrivateChatView: View {
|
||||
.scaleEffect(x: 1, y: -1, anchor: .center)
|
||||
}
|
||||
}
|
||||
.padding(.vertical, 12)
|
||||
.padding(.vertical, 8)
|
||||
}
|
||||
.scaleEffect(x: 1, y: -1, anchor: .center)
|
||||
.simultaneousGesture(
|
||||
@ -238,14 +238,14 @@ struct PrivateChatView: View {
|
||||
|
||||
private func messageRow(for message: MessageItem) -> some View {
|
||||
let isCurrentUser = currentUserId.map { $0 == message.senderId } ?? false
|
||||
return HStack(alignment: .bottom, spacing: 12) {
|
||||
return HStack(alignment: .bottom, spacing: 8) {
|
||||
if isCurrentUser { Spacer(minLength: 32) }
|
||||
|
||||
messageBubble(for: message, isCurrentUser: isCurrentUser)
|
||||
|
||||
if !isCurrentUser { Spacer(minLength: 32) }
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.horizontal, 8)
|
||||
}
|
||||
|
||||
private func messageBubble(for message: MessageItem, isCurrentUser: Bool) -> some View {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user