Files
writer-work-flow/apps/web/app/layout.tsx
Yaojia Wang 10c0d4bead fix(ux): 修水合告警(扩展注入) + 正文编辑器嵌套滚动条/不铺满
- layout: html/body 加 suppressHydrationWarning(浏览器扩展水合前注入 class/attr,非本应用 bug)
- Editor: textarea 高度自适应内容 + overflow-hidden,消除内部嵌套滚动条、正文随内容铺满写作区,外层单一滚动条统管
2026-06-21 17:57:53 +02:00

30 lines
918 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { Metadata } from "next";
import "./globals.css";
import { CommandPaletteMount } from "@/components/command/CommandPaletteMount";
import { ToastProvider } from "@/components/Toast";
export const metadata: Metadata = {
title: "网文创作工作流",
description: "把写小说当软件工程:架构→生成→质检→单一真相源",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
// suppressHydrationWarning浏览器扩展如 Dark Reader/翻译插件)常在 html/body
// 注入 class/attr水合前改 DOM → 仅这一层属性的水合告警,非本应用 bug。
return (
<html lang="zh-CN" suppressHydrationWarning>
<body className="font-sans antialiased" suppressHydrationWarning>
<ToastProvider>
{children}
<CommandPaletteMount />
</ToastProvider>
</body>
</html>
);
}