edit view msg
This commit is contained in:
		
							parent
							
								
									b0888c2921
								
							
						
					
					
						commit
						9460024734
					
				@ -159,15 +159,18 @@ struct PrivateChatView: View {
 | 
			
		||||
//                        .font(.caption)
 | 
			
		||||
//                        .foregroundColor(.secondary)
 | 
			
		||||
//                }
 | 
			
		||||
 | 
			
		||||
                Text(contentText(for: message))
 | 
			
		||||
                    .font(.body)
 | 
			
		||||
                    .foregroundColor(isCurrentUser ? .white : .primary)
 | 
			
		||||
                    .multilineTextAlignment(isCurrentUser ? .trailing : .leading)
 | 
			
		||||
 | 
			
		||||
                Text(timestamp(for: message))
 | 
			
		||||
                    .font(.caption2)
 | 
			
		||||
                    .foregroundColor(isCurrentUser ? Color.white.opacity(0.8) : .secondary)
 | 
			
		||||
                
 | 
			
		||||
                HStack{
 | 
			
		||||
                    Text(contentText(for: message))
 | 
			
		||||
                        .font(.body)
 | 
			
		||||
                        .foregroundColor(isCurrentUser ? .white : .primary)
 | 
			
		||||
                        .multilineTextAlignment(isCurrentUser ? .trailing : .leading)
 | 
			
		||||
                    
 | 
			
		||||
                    Text(timestamp(for: message))
 | 
			
		||||
                        .font(.caption2)
 | 
			
		||||
                        .foregroundColor(isCurrentUser ? Color.white.opacity(0.8) : .secondary)
 | 
			
		||||
                    
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            .padding(.vertical, 10)
 | 
			
		||||
            .padding(.horizontal, 12)
 | 
			
		||||
@ -314,7 +317,7 @@ struct PrivateChatView: View {
 | 
			
		||||
 | 
			
		||||
    private var sendButton: some View {
 | 
			
		||||
        Button(action: sendCurrentMessage) {
 | 
			
		||||
            Image(systemName: "paperplane.fill")
 | 
			
		||||
            Image(systemName: "leaf.fill")
 | 
			
		||||
                .font(.system(size: 16, weight: .semibold))
 | 
			
		||||
                .foregroundColor(Color.white.opacity(isSendDisabled ? 0.6 : 1))
 | 
			
		||||
                .frame(width: 36, height: 36)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user