fix responsive admin forum

This commit is contained in:
2025-04-16 20:39:40 +08:00
parent 650d8a36eb
commit e97fd98077
9 changed files with 396 additions and 204 deletions

View File

@@ -6,21 +6,23 @@ export function Admin_V3_ComponentBreakpoint({
sm,
md,
lg,
allCols,
}: {
children: React.ReactNode;
cols?: number;
sm?: number;
md?: number;
lg?: number;
allCols?: number;
}) {
return (
<>
<SimpleGrid
cols={cols || 2}
cols={ allCols || cols || 2}
breakpoints={[
{ maxWidth: "sm", cols: sm || 1 },
{ maxWidth: "md", cols: md || 1 },
{ maxWidth: "lg", cols: lg || 1 },
{ maxWidth: "sm", cols: allCols || sm || 1 },
{ maxWidth: "md", cols: allCols || md || 1 },
{ maxWidth: "lg", cols: allCols || lg || 1 },
]}
spacing={"lg"}
verticalSpacing={"lg"}