fix(web): layout and scrollable

This commit is contained in:
BennyKok
2023-12-29 14:55:08 +08:00
parent d9f83dadd1
commit 9d0a52b7ab
7 changed files with 65 additions and 9 deletions
+6
View File
@@ -4,6 +4,7 @@ import { Layout } from "@/components/docs/Layout";
import { type Section } from "@/components/docs/SectionProvider";
import glob from "fast-glob";
import { type Metadata } from "next";
import PlausibleProvider from "next-plausible";
export const metadata: Metadata = {
title: {
@@ -28,6 +29,11 @@ export default async function RootLayout({
return (
<html lang="en" className="h-full" suppressHydrationWarning>
<head>
{process.env.PLAUSIBLE_DOMAIN && (
<PlausibleProvider domain={process.env.PLAUSIBLE_DOMAIN} />
)}
</head>
<body className="flex min-h-full bg-white antialiased dark:bg-zinc-900">
<Providers>
<div className="w-full">