Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(portal): drop card border from full-panel load errors (#20922)

Arvin Xub4041d4c5a3a
diff --git a/src/features/Portal/Document/Body.tsx b/src/features/Portal/Document/Body.tsx
index a99e20559f7..a3f7cbe3c8c 100644
--- a/src/features/Portal/Document/Body.tsx
+++ b/src/features/Portal/Document/Body.tsx
@@ -285,7 +285,7 @@ const DocumentBody = memo(() => {
return (
<AsyncError
error={documentError}
- variant={'block'}
+ variant={'page'}
onRetry={() => void mutateDocumentMeta()}
/>
);
diff --git a/src/features/Portal/FilePreview/Body/index.tsx b/src/features/Portal/FilePreview/Body/index.tsx
index dfc4d053031..979278fbf09 100644
--- a/src/features/Portal/FilePreview/Body/index.tsx
+++ b/src/features/Portal/FilePreview/Body/index.tsx
@@ -44,11 +44,7 @@ const FilePreview = () => {
// resolved-nothing on some list paths) — both are terminal, not retryable.
// Other failures offer Reload.
if (error && normalizeAsyncError(error).status !== 404) {
- return (
- <Flexbox flex={1} padding={16}>
- <AsyncError error={error} variant={'block'} onRetry={() => void mutate?.()} />
- </Flexbox>
- );
+ return <AsyncError error={error} variant={'page'} onRetry={() => void mutate?.()} />;
}
if (error || !data) return <FileNotFound />;