edit view msg
This commit is contained in:
parent
b0888c2921
commit
9460024734
@ -160,6 +160,7 @@ struct PrivateChatView: View {
|
|||||||
// .foregroundColor(.secondary)
|
// .foregroundColor(.secondary)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
HStack{
|
||||||
Text(contentText(for: message))
|
Text(contentText(for: message))
|
||||||
.font(.body)
|
.font(.body)
|
||||||
.foregroundColor(isCurrentUser ? .white : .primary)
|
.foregroundColor(isCurrentUser ? .white : .primary)
|
||||||
@ -168,6 +169,8 @@ struct PrivateChatView: View {
|
|||||||
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user