Fix admin configuration layout shift

This commit is contained in:
Sam Becker 2024-06-12 00:35:55 -05:00
parent ea11c039d1
commit 6786f1aad6
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@ export default async function AdminConfigurationPage() {
</div>
<ClearCacheButton />
</div>
<InfoBlock>
<InfoBlock spaceChildren={false}>
<SiteChecklist />
</InfoBlock>
</div>}

View File

@ -7,12 +7,14 @@ export default function InfoBlock({
color = 'gray',
padding = 'normal',
centered = true,
spaceChildren = true,
}: {
children: ReactNode
className?: string
color?: 'gray' | 'blue'
padding?: 'loose' | 'normal' | 'tight';
centered?: boolean;
padding?: 'loose' | 'normal' | 'tight'
centered?: boolean
spaceChildren?: boolean
} ) {
const getColorClasses = () => {
switch (color) {
@ -48,7 +50,7 @@ export default function InfoBlock({
<div className={clsx(
'flex flex-col justify-center w-full',
centered && 'items-center',
'space-y-4',
spaceChildren && 'space-y-4',
)}>
{children}
</div>