diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 32db5b0..4a7eb64 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -41,9 +41,9 @@ const RootLayout = async ({ disableTransitionOnChange > -
+
-
+
diff --git a/src/components/on-this-page.tsx b/src/components/on-this-page.tsx index 0d82d97..2c271a5 100644 --- a/src/components/on-this-page.tsx +++ b/src/components/on-this-page.tsx @@ -9,6 +9,7 @@ import { Separator } from "@/components/ui/separator"; import { Button } from "@/components/ui/button"; import { AlignLeftIcon, ArrowUpFromDot, MoveRight } from "lucide-react"; import config from "@/config"; +import { Skeleton } from "@/components/ui/skeleton"; type Header = { id: string; @@ -81,7 +82,7 @@ const OnThisPage = ({ page }: { page: DocsContentMetadata }): ReactElement => { @@ -93,37 +94,43 @@ const OnThisPage = ({ page }: { page: DocsContentMetadata }): ReactElement => { {/* Headers */}
    - {headers.map((header: Header) => ( -
  • - {/* Indentation */} - {header.level > 1 && ( -
    - )} - - {/* Header */} - + ) : ( + headers.map((header: Header) => ( +
  • - {truncateText(header.text, 20)} - -
  • - ))} + {/* Indentation */} + {header.level > 1 && ( +
    + )} + + {/* Header */} + + {truncateText(header.text, 20)} + + + )) + )}
{/* Footer */} diff --git a/src/components/sidebar/sidebar-links.tsx b/src/components/sidebar/sidebar-links.tsx index 5f10007..b66fe4f 100644 --- a/src/components/sidebar/sidebar-links.tsx +++ b/src/components/sidebar/sidebar-links.tsx @@ -72,7 +72,7 @@ const CategoryItem = ({ >