diff --git a/web/default/src/features/docs/index.tsx b/web/default/src/features/docs/index.tsx index e7a073536..96f9af079 100644 --- a/web/default/src/features/docs/index.tsx +++ b/web/default/src/features/docs/index.tsx @@ -357,7 +357,7 @@ export function Docs() { {/* Center content */}
{/* Document title - always reserve space, visually centered with page header */} -
+

{selectedDoc && !docLoading ? selectedDoc.title : '\u00A0'}

@@ -371,17 +371,8 @@ export function Docs() {
) : ( - /* Empty state - centered with page header */ -
-
-
- -
-

- {t('Select a document to start reading')} -

-
-
+ /* Spacer to maintain layout height */ +
) ) : ( <> @@ -451,6 +442,19 @@ export function Docs() { )}
+ {/* Empty state overlay - absolutely positioned, centered in the page container */} + {!selectedDoc && !docLoading && ( +
+
+
+ +
+

+ {t('Select a document to start reading')} +

+
+
+ )}