mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +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 & {
|
||||
color?: ComponentProps<typeof Theme>['accentColor'];
|
||||
noMaxWidth?: boolean;
|
||||
containerProps?: ComponentProps<typeof Theme>;
|
||||
noFlex1?: boolean;
|
||||
padding?: RadixSize;
|
||||
@@ -17,7 +16,6 @@ export function PageWrapper({
|
||||
style,
|
||||
color,
|
||||
children,
|
||||
noMaxWidth = false,
|
||||
noFlex1 = false,
|
||||
containerProps,
|
||||
noMinHeight = false,
|
||||
@@ -41,7 +39,7 @@ export function PageWrapper({
|
||||
gap="4"
|
||||
p={padding}
|
||||
width="100%"
|
||||
maxWidth={noMaxWidth ? undefined : '50rem'}
|
||||
maxWidth="50rem"
|
||||
style={{
|
||||
margin: 'auto',
|
||||
boxSizing: 'border-box',
|
||||
|
||||
@@ -26,7 +26,7 @@ function Content({ skeleton }: MaybeSkeletonComponentProps) {
|
||||
const mode = TankPerformanceEphemeral.use((state) => state.mode);
|
||||
|
||||
return (
|
||||
<PageWrapper color="jade" noMaxWidth>
|
||||
<PageWrapper color="jade" maxWidth="unset">
|
||||
<ModeSwitcher />
|
||||
|
||||
<PerformanceInfo skeleton={skeleton} />
|
||||
|
||||
@@ -37,7 +37,7 @@ export function Page({ id, skeleton }: PageProps) {
|
||||
<Duel.Provider
|
||||
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} />
|
||||
<CalloutsSection />
|
||||
<MetaSection />
|
||||
|
||||
Reference in new issue
Block a user