Fix iOS chat background presentation · openclaw/openclaw@83a6bce
joshavant
·
2026-06-06
·
via Recent Commits to openclaw:main
File tree
shared/OpenClawKit/Sources/OpenClawChatUI
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,7 +42,9 @@ struct ChatProTab: View {
|
42 | 42 | Spacer() |
43 | 43 | } |
44 | 44 | } |
| 45 | +.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top) |
45 | 46 | } |
| 47 | +.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top) |
46 | 48 | .navigationBarHidden(true) |
47 | 49 | } |
48 | 50 | .task { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,11 +22,12 @@ struct OpenClawProBackground: View {
|
22 | 22 | LinearGradient( |
23 | 23 | colors: [ |
24 | 24 | OpenClawBrand.accent.opacity(0.05), |
| 25 | +OpenClawBrand.accent.opacity(0.02), |
25 | 26 | .clear, |
26 | 27 | ], |
27 | 28 | startPoint: .topTrailing, |
28 | 29 | endPoint: .bottomLeading) |
29 | | -.frame(height: 260) |
| 30 | +.frame(height: 620) |
30 | 31 | .ignoresSafeArea() |
31 | 32 | } |
32 | 33 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -269,7 +269,7 @@ public struct OpenClawChatView: View {
|
269 | 269 | .frame(maxWidth: .infinity, alignment: .leading) |
270 | 270 | } |
271 | 271 | |
272 | | -if self.composerChrome == .clean, let error = self.activeErrorText, !self.hasVisibleMessageListContent { |
| 272 | +if let error = self.inlineCleanErrorText { |
273 | 273 | let presentation = self.errorPresentation(for: error) |
274 | 274 | ChatNoticeCard( |
275 | 275 | systemImage: presentation.systemImage, |
@@ -348,6 +348,8 @@ public struct OpenClawChatView: View {
|
348 | 348 | EmptyView() |
349 | 349 | } else if self.showsCleanLoadingPlaceholder { |
350 | 350 | EmptyView() |
| 351 | +} else if self.inlineCleanErrorText != nil { |
| 352 | +EmptyView() |
351 | 353 | } else if let error = self.activeErrorText { |
352 | 354 | if self.hasVisibleMessageListContent { |
353 | 355 | EmptyView() |
@@ -386,6 +388,13 @@ public struct OpenClawChatView: View {
|
386 | 388 | return text |
387 | 389 | } |
388 | 390 | |
| 391 | +private var inlineCleanErrorText: String? { |
| 392 | +guard self.composerChrome == .clean, !self.hasVisibleMessageListContent else { |
| 393 | +return nil |
| 394 | +} |
| 395 | +return self.activeErrorText |
| 396 | +} |
| 397 | + |
389 | 398 | private var hasVisibleMessageListContent: Bool { |
390 | 399 | if !self.visibleMessages.isEmpty { |
391 | 400 | return true |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。