aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/ServerMessageView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS/ServerMessageView.swift')
-rw-r--r--Hotline/macOS/ServerMessageView.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/Hotline/macOS/ServerMessageView.swift b/Hotline/macOS/ServerMessageView.swift
index 742703f..8413a87 100644
--- a/Hotline/macOS/ServerMessageView.swift
+++ b/Hotline/macOS/ServerMessageView.swift
@@ -15,9 +15,15 @@ struct ServerMessageView: View {
.lineSpacing(4)
.multilineTextAlignment(.leading)
.textSelection(.enabled)
+ Spacer()
}
.padding()
+ .frame(maxWidth: .infinity)
+#if os(iOS)
.background(Color("Agreement Background"))
+#elseif os(macOS)
+ .background(VisualEffectView(material: .titlebar, blendingMode: .withinWindow))
+#endif
.clipShape(RoundedRectangle(cornerRadius: 8))
}
}