We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54eb695 commit f5602abCopy full SHA for f5602ab
frontend/src/pages/DocPage.tsx
@@ -114,6 +114,7 @@ export default function DocPage() {
114
)
115
} catch (error) {
116
console.error('Error fetching document:', error)
117
+ setDoc(null)
118
setError('Failed to load document. Please try again later.')
119
} finally {
120
setLoading(false)
@@ -170,7 +171,7 @@ export default function DocPage() {
170
171
}
172
return (
173
<>
- {error && <div className="alert alert-error m-4">{error}</div>}
174
+ {error && <div className="alert alert-error mt-6 max-w-100 self-center">{error}</div>}
175
{doc && (
176
<div className="flex h-full items-start justify-center">
177
<div className="mx-0 flex min-h-full w-full max-w-200 grow flex-col p-4 sm:mx-2 md:mx-4 lg:mx-8">
0 commit comments