aboutsummaryrefslogtreecommitdiff
path: root/Hotline/iOS/ChatView.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-11-27 23:38:04 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-11-27 23:38:04 +0100
commit213710bf5bd6413c747bf126db50816ef5de5a6e (patch)
tree912f8cf87955a08077c92fea8ad934f50b7ab975 /Hotline/iOS/ChatView.swift
parentf466b21dc02f78c984ba6748e703f6780a7a0db4 (diff)
parent6a95b53616a4abfa306ddce43151cf4fefbd20ed (diff)
Merge remote-tracking branch 'upstream/main'
Diffstat (limited to 'Hotline/iOS/ChatView.swift')
-rw-r--r--Hotline/iOS/ChatView.swift23
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)")