mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: remove noMaxWidth
This commit is contained in:
1 parent
6ca3ce731b
commit
7a9f43657d
3 files changed
+3
-5
No files matched your search
@@ -6,7 +6,6 @@ import { BlitzKitTheme } from './BlitzKitTheme';
|
|||||||
|
|
||||||
type PageWrapperProps = FlexProps & {
|
type PageWrapperProps = FlexProps & {
|
||||||
color?: ComponentProps<typeof Theme>['accentColor'];
|
color?: ComponentProps<typeof Theme>['accentColor'];
|
||||||
noMaxWidth?: boolean;
|
|
||||||
containerProps?: ComponentProps<typeof Theme>;
|
containerProps?: ComponentProps<typeof Theme>;
|
||||||
noFlex1?: boolean;
|
noFlex1?: boolean;
|
||||||
padding?: RadixSize;
|
padding?: RadixSize;
|
||||||
@@ -17,7 +16,6 @@ export function PageWrapper({
|
|||||||
style,
|
style,
|
||||||
color,
|
color,
|
||||||
children,
|
children,
|
||||||
noMaxWidth = false,
|
|
||||||
noFlex1 = false,
|
noFlex1 = false,
|
||||||
containerProps,
|
containerProps,
|
||||||
noMinHeight = false,
|
noMinHeight = false,
|
||||||
@@ -41,7 +39,7 @@ export function PageWrapper({
|
|||||||
gap="4"
|
gap="4"
|
||||||
p={padding}
|
p={padding}
|
||||||
width="100%"
|
width="100%"
|
||||||
maxWidth={noMaxWidth ? undefined : '50rem'}
|
maxWidth="50rem"
|
||||||
style={{
|
style={{
|
||||||
margin: 'auto',
|
margin: 'auto',
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ function Content({ skeleton }: MaybeSkeletonComponentProps) {
|
|||||||
const mode = TankPerformanceEphemeral.use((state) => state.mode);
|
const mode = TankPerformanceEphemeral.use((state) => state.mode);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageWrapper color="jade" noMaxWidth>
|
<PageWrapper color="jade" maxWidth="unset">
|
||||||
<ModeSwitcher />
|
<ModeSwitcher />
|
||||||
|
|
||||||
<PerformanceInfo skeleton={skeleton} />
|
<PerformanceInfo skeleton={skeleton} />
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export function Page({ id, skeleton }: PageProps) {
|
|||||||
<Duel.Provider
|
<Duel.Provider
|
||||||
data={{ tank, provisionDefinitions: provisionDefinitions }}
|
data={{ tank, provisionDefinitions: provisionDefinitions }}
|
||||||
>
|
>
|
||||||
<PageWrapper p="0" noMaxWidth color="purple" gap="9" pb="9">
|
<PageWrapper p="0" maxWidth="unset" color="purple" gap="9" pb="9">
|
||||||
<HeroSection skeleton={skeleton} />
|
<HeroSection skeleton={skeleton} />
|
||||||
<CalloutsSection />
|
<CalloutsSection />
|
||||||
<MetaSection />
|
<MetaSection />
|
||||||
|
|||||||
Reference in new issue
Block a user