Files
ragflow/web/src/layouts/next.tsx
Gifford Nowland b6cd282ccd fix: layout structure to use main tag (#11119)
### What problem does this PR solve?

For proper semantics Layout should use HTML `<main>` element to wrap the
Header and Outlet which produce`<section>` HTML elements.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-10 10:15:57 +08:00

12 lines
218 B
TypeScript

import { Outlet } from 'umi';
import { Header } from './next-header';
export default function NextLayout() {
return (
<main className="h-full flex flex-col">
<Header />
<Outlet />
</main>
);
}