diff options
Diffstat (limited to 'Hotline/iOS/ChatView.swift')
| -rw-r--r-- | Hotline/iOS/ChatView.swift | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Hotline/iOS/ChatView.swift b/Hotline/iOS/ChatView.swift index e5105d0..2484310 100644 --- a/Hotline/iOS/ChatView.swift +++ b/Hotline/iOS/ChatView.swift @@ -28,7 +28,7 @@ struct ChatView: View { VStack(alignment: .center) { if let bannerImage = self.model.bannerImage { - Image(uiImage: bannerImage) + bannerImage .resizable() .scaledToFit() .frame(maxWidth: 468.0) @@ -52,17 +52,24 @@ struct ChatView: View { } .frame(maxWidth: .infinity) .padding() - } else if msg.type == .status { + } + else if msg.type == .signOut { HStack { Spacer() - Text(msg.text) - .lineLimit(1) - .truncationMode(.middle) - .opacity(0.3) + Label { + Text(msg.text) + .font(.footnote) + } icon: { + Image(systemName: "arrow.up.circle.fill") + } + .labelStyle(.titleAndIcon) + .foregroundStyle(Color.red) + .opacity(0.8) Spacer() } - .padding() - } else { + .padding(.vertical, 6) + } + else { HStack(alignment: .firstTextBaseline) { if let username = msg.username { Text("**\(username):** \(msg.text)") |