aboutsummaryrefslogtreecommitdiff
path: root/Hotline/iOS/ChatView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2023-12-20 08:08:19 -0800
committerDustin Mierau <dustin@mierau.me>2023-12-20 08:08:19 -0800
commit980b82d42eb8e5160f0495ad6f4472b1fc649bfe (patch)
tree88972ca20f24995a535054a880c06882ecc370d9 /Hotline/iOS/ChatView.swift
parent4fd69c02a3e7b581bb9229865336c315153f3b18 (diff)
Added usernames to News list. Improved date/username header on news article display. Fixed icon for message board. Removed agreement title bar. Fixed bug in News on iOS where article reader didn't span full display width when no article was selected.
Diffstat (limited to 'Hotline/iOS/ChatView.swift')
-rw-r--r--Hotline/iOS/ChatView.swift26
1 files changed, 6 insertions, 20 deletions
diff --git a/Hotline/iOS/ChatView.swift b/Hotline/iOS/ChatView.swift
index e8c7754..08b6a75 100644
--- a/Hotline/iOS/ChatView.swift
+++ b/Hotline/iOS/ChatView.swift
@@ -25,28 +25,14 @@ struct ChatView: View {
ForEach(model.chat) { msg in
if msg.type == .agreement {
VStack(alignment: .leading) {
- VStack(alignment: .leading, spacing: 0) {
- Text(msg.text)
- .textSelection(.enabled)
- .padding()
- .opacity(0.75)
- HStack {
- Spacer()
- Text((model.serverTitle) + " Server Agreement")
- .font(.caption)
- .fontWeight(.medium)
- .opacity(0.4)
- .lineLimit(1)
- .truncationMode(.middle)
- Spacer()
- }
+ Text(msg.text)
+ .textSelection(.enabled)
.padding()
- .background(colorScheme == .dark ? Color(white: 0.2) : Color(white: 0.9))
- }
- .background(colorScheme == .dark ? Color(white: 0.1) : Color(white: 0.96))
- .cornerRadius(16)
- .frame(maxWidth: .infinity)
+ .opacity(0.75)
}
+ .background(colorScheme == .dark ? Color(white: 0.1) : Color(white: 0.96))
+ .cornerRadius(16)
+ .frame(maxWidth: .infinity)
.padding()
}
else if msg.type == .status {