🐛 Docs: 修复文档主页 Features 不居中 (#2390)

This commit is contained in:
MingxuanGame 2023-10-03 19:36:40 +08:00 committed by GitHub
parent ee20204b22
commit 41191db863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ export function HomeFeature({
function HomeFeatureSingleColumn(props: Feature): JSX.Element { function HomeFeatureSingleColumn(props: Feature): JSX.Element {
return ( return (
<div className="grid grid-cols-1 px-4 py-8 md:px-16"> <div className="grid grid-cols-1 px-4 py-8 md:px-16 mx-auto">
<HomeFeature {...props} /> <HomeFeature {...props} />
</div> </div>
); );
@ -50,7 +50,7 @@ function HomeFeatureDoubleColumn({
const [children1, children2] = children ?? []; const [children1, children2] = children ?? [];
return ( return (
<div className="grid gap-x-6 gap-y-8 grid-cols-1 lg:grid-cols-2 max-w-7xl px-4 py-8 md:px-16"> <div className="grid gap-x-6 gap-y-8 grid-cols-1 lg:grid-cols-2 max-w-7xl px-4 py-8 md:px-16 mx-auto">
<HomeFeature {...feature1}>{children1}</HomeFeature> <HomeFeature {...feature1}>{children1}</HomeFeature>
<HomeFeature {...feature2}>{children2}</HomeFeature> <HomeFeature {...feature2}>{children2}</HomeFeature>
</div> </div>