mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: no flex 1
This commit is contained in:
1 parent
a7f2c3e324
commit
a5b3177394
4 files changed
+6
-3
No files matched your search
@@ -8,7 +8,7 @@ export function HistoricalSection() {
|
||||
if (!tank.description) return null;
|
||||
|
||||
return (
|
||||
<PageWrapper>
|
||||
<PageWrapper noFlex1>
|
||||
<Heading>History of the {tank.name}</Heading>
|
||||
<Text>{tank.description}</Text>
|
||||
</PageWrapper>
|
||||
|
||||
@@ -128,6 +128,7 @@ export function TechTreeSection() {
|
||||
|
||||
return (
|
||||
<PageWrapper
|
||||
noFlex1
|
||||
containerProps={{
|
||||
style: {
|
||||
overflow: 'hidden',
|
||||
|
||||
@@ -14,7 +14,7 @@ export function Videos() {
|
||||
if (isFullScreen || videos.length === 0) return null;
|
||||
|
||||
return (
|
||||
<PageWrapper>
|
||||
<PageWrapper noFlex1>
|
||||
<Flex direction="column" gap="4" align="start">
|
||||
<Heading size="6">Review videos</Heading>
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ type PageWrapperProps = FlexProps & {
|
||||
noMaxWidth?: boolean;
|
||||
highlight?: boolean;
|
||||
containerProps?: ComponentProps<typeof Theme>;
|
||||
noFlex1?: boolean;
|
||||
};
|
||||
|
||||
export default function PageWrapper({
|
||||
@@ -18,6 +19,7 @@ export default function PageWrapper({
|
||||
children,
|
||||
noPadding = false,
|
||||
noMaxWidth = false,
|
||||
noFlex1 = false,
|
||||
highlight = false,
|
||||
containerProps,
|
||||
...props
|
||||
@@ -27,7 +29,7 @@ export default function PageWrapper({
|
||||
{...containerProps}
|
||||
accentColor={color}
|
||||
style={{
|
||||
flex: 1,
|
||||
flex: noFlex1 ? undefined : 1,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
background: highlight
|
||||
|
||||
Reference in new issue
Block a user