From 06a2166415bca7e5fe32eac505859bdd690ab8e0 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 5 Dec 2023 17:41:22 -0800 Subject: Some styling work. Files showing. Message board tweaks. --- Hotline/Views/ChatView.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Hotline/Views/ChatView.swift') diff --git a/Hotline/Views/ChatView.swift b/Hotline/Views/ChatView.swift index 6dc7318..e28e076 100644 --- a/Hotline/Views/ChatView.swift +++ b/Hotline/Views/ChatView.swift @@ -10,18 +10,18 @@ struct ChatView: View { var body: some View { VStack(spacing: 0) { List(hotline.chatMessages) { msg in - if msg.username == "" { - - } HStack(alignment: .firstTextBaseline) { - Text("\(msg.username):").bold().fontDesign(.monospaced).font(.system(size: 12)) + if !msg.username.isEmpty { + Text("\(msg.username):").bold().fontDesign(.monospaced).font(.system(size: 12)) + } Text(msg.message) .fontDesign(.monospaced) .textSelection(.enabled) .font(.system(size: 12)) } + .listRowSeparator(.hidden) } - .padding() + .listStyle(.plain) // GeometryReader { geometry in // ScrollView(.vertical) { -- cgit