Fix iOS chat background presentation

This commit is contained in:
joshavant
2026-06-05 20:01:46 -05:00
parent 5c07f7ccf0
commit 83a6bce835
3 changed files with 14 additions and 2 deletions

View File

@@ -42,7 +42,9 @@ struct ChatProTab: View {
Spacer()
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
.navigationBarHidden(true)
}
.task {

View File

@@ -22,11 +22,12 @@ struct OpenClawProBackground: View {
LinearGradient(
colors: [
OpenClawBrand.accent.opacity(0.05),
OpenClawBrand.accent.opacity(0.02),
.clear,
],
startPoint: .topTrailing,
endPoint: .bottomLeading)
.frame(height: 260)
.frame(height: 620)
.ignoresSafeArea()
}
}

View File

@@ -269,7 +269,7 @@ public struct OpenClawChatView: View {
.frame(maxWidth: .infinity, alignment: .leading)
}
if self.composerChrome == .clean, let error = self.activeErrorText, !self.hasVisibleMessageListContent {
if let error = self.inlineCleanErrorText {
let presentation = self.errorPresentation(for: error)
ChatNoticeCard(
systemImage: presentation.systemImage,
@@ -348,6 +348,8 @@ public struct OpenClawChatView: View {
EmptyView()
} else if self.showsCleanLoadingPlaceholder {
EmptyView()
} else if self.inlineCleanErrorText != nil {
EmptyView()
} else if let error = self.activeErrorText {
if self.hasVisibleMessageListContent {
EmptyView()
@@ -386,6 +388,13 @@ public struct OpenClawChatView: View {
return text
}
private var inlineCleanErrorText: String? {
guard self.composerChrome == .clean, !self.hasVisibleMessageListContent else {
return nil
}
return self.activeErrorText
}
private var hasVisibleMessageListContent: Bool {
if !self.visibleMessages.isEmpty {
return true