mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
🐛 Docs: 修复文档主页 Features 不居中 (#2390)
This commit is contained in:
parent
ee20204b22
commit
41191db863
@ -34,7 +34,7 @@ export function HomeFeature({
|
||||
|
||||
function HomeFeatureSingleColumn(props: Feature): JSX.Element {
|
||||
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} />
|
||||
</div>
|
||||
);
|
||||
@ -50,7 +50,7 @@ function HomeFeatureDoubleColumn({
|
||||
const [children1, children2] = children ?? [];
|
||||
|
||||
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 {...feature2}>{children2}</HomeFeature>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user