aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Views/ChatView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2023-12-05 17:41:22 -0800
committerDustin Mierau <dustin@mierau.me>2023-12-05 17:41:22 -0800
commit06a2166415bca7e5fe32eac505859bdd690ab8e0 (patch)
treed47d4ea30766a8e382deafa607a7abe66f47f9ab /Hotline/Views/ChatView.swift
parentb99219f16792be4a06a89f1f32a59f0bf97bba68 (diff)
Some styling work. Files showing. Message board tweaks.
Diffstat (limited to 'Hotline/Views/ChatView.swift')
-rw-r--r--Hotline/Views/ChatView.swift10
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) {