diff options
Diffstat (limited to 'Hotline/Views/ChatView.swift')
| -rw-r--r-- | Hotline/Views/ChatView.swift | 10 |
1 files changed, 5 insertions, 5 deletions
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) { |