diff --git a/src/utils.ts b/src/utils.ts index 161eb5e..d1185b3 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -181,7 +181,9 @@ function useRouteState(): RouteState { export function useAdaptMainUIStyle(show: boolean, tabsWidth?: number | null) { const { template } = useRouteState(); const shouldShow = - show && ["/all-journals", "/page/:name", "/file/:path"].includes(template); + show && + (!template || + ["/", "/all-journals", "/page/:name", "/file/:path"].includes(template)); const docRef = React.useRef(document.documentElement); const isHovering = useHoverDirty(docRef); React.useEffect(() => {