edit view msg

This commit is contained in:
cheykrym 2025-10-23 02:14:36 +03:00
parent b0888c2921
commit 9460024734

View File

@ -160,14 +160,17 @@ struct PrivateChatView: View {
// .foregroundColor(.secondary) // .foregroundColor(.secondary)
// } // }
Text(contentText(for: message)) HStack{
.font(.body) Text(contentText(for: message))
.foregroundColor(isCurrentUser ? .white : .primary) .font(.body)
.multilineTextAlignment(isCurrentUser ? .trailing : .leading) .foregroundColor(isCurrentUser ? .white : .primary)
.multilineTextAlignment(isCurrentUser ? .trailing : .leading)
Text(timestamp(for: message)) Text(timestamp(for: message))
.font(.caption2) .font(.caption2)
.foregroundColor(isCurrentUser ? Color.white.opacity(0.8) : .secondary) .foregroundColor(isCurrentUser ? Color.white.opacity(0.8) : .secondary)
}
} }
.padding(.vertical, 10) .padding(.vertical, 10)
.padding(.horizontal, 12) .padding(.horizontal, 12)
@ -314,7 +317,7 @@ struct PrivateChatView: View {
private var sendButton: some View { private var sendButton: some View {
Button(action: sendCurrentMessage) { Button(action: sendCurrentMessage) {
Image(systemName: "paperplane.fill") Image(systemName: "leaf.fill")
.font(.system(size: 16, weight: .semibold)) .font(.system(size: 16, weight: .semibold))
.foregroundColor(Color.white.opacity(isSendDisabled ? 0.6 : 1)) .foregroundColor(Color.white.opacity(isSendDisabled ? 0.6 : 1))
.frame(width: 36, height: 36) .frame(width: 36, height: 36)