edit view msg
This commit is contained in:
		
							parent
							
								
									b0888c2921
								
							
						
					
					
						commit
						9460024734
					
				@ -159,15 +159,18 @@ struct PrivateChatView: View {
 | 
				
			|||||||
//                        .font(.caption)
 | 
					//                        .font(.caption)
 | 
				
			||||||
//                        .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))
 | 
					                    
 | 
				
			||||||
                    .font(.caption2)
 | 
					                    Text(timestamp(for: message))
 | 
				
			||||||
                    .foregroundColor(isCurrentUser ? Color.white.opacity(0.8) : .secondary)
 | 
					                        .font(.caption2)
 | 
				
			||||||
 | 
					                        .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