aboutsummaryrefslogtreecommitdiff
path: root/Hotline/iOS/ChatView.swift
diff options
context:
space:
mode:
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 {