From f0e278db3b6e9022355ac8a25c301936f15454cf Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Thu, 7 Dec 2023 00:14:31 -0800 Subject: Few style changes in chat and files and news. --- Hotline/Views/ChatView.swift | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Hotline/Views/ChatView.swift') 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() -- cgit