diff options
Diffstat (limited to 'Hotline/Views/ChatView.swift')
| -rw-r--r-- | Hotline/Views/ChatView.swift | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Hotline/Views/ChatView.swift b/Hotline/Views/ChatView.swift index 108aea3..2283cdd 100644 --- a/Hotline/Views/ChatView.swift +++ b/Hotline/Views/ChatView.swift @@ -15,7 +15,7 @@ struct ChatView: View { @State private var contentHeight: CGFloat = 0 @Namespace var bottomID - + var body: some View { NavigationStack { VStack(spacing: 0) { @@ -26,6 +26,7 @@ struct ChatView: View { if msg.type == .agreement { VStack(alignment: .leading) { Text(msg.text) + .font(.system(size: 11, weight: .regular, design: .monospaced)) .padding() .opacity(0.75) .background(colorScheme == .dark ? Color(white: 0.1) : Color(white: 0.96)) @@ -36,10 +37,12 @@ struct ChatView: View { else { HStack(alignment: .firstTextBaseline) { if !msg.username.isEmpty { - Text("\(msg.username):").bold() + Text("**\(msg.username):** \(msg.text)") + } + else { + Text(msg.text) + .textSelection(.enabled) } - Text(msg.text) - .textSelection(.enabled) Spacer() } .padding() |