mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: flex 1 pages
This commit is contained in:
1 parent
f0b905593c
commit
f516c9275e
3 files changed
+19
-11
No files matched your search
+2
-7
@@ -100,14 +100,9 @@ export default function RootLayout({ children }: RootLayoutProps) {
|
||||
</AlertDialog.Content>
|
||||
</AlertDialog.Root>
|
||||
|
||||
<Flex direction="column">{children}</Flex>
|
||||
{children}
|
||||
|
||||
{!isEmbed && !isFullScreen && (
|
||||
<>
|
||||
<div style={{ flex: 1 }} />
|
||||
<Footer />
|
||||
</>
|
||||
)}
|
||||
{!isEmbed && !isFullScreen && <Footer />}
|
||||
</Flex>
|
||||
</Theme>
|
||||
</body>
|
||||
|
||||
@@ -652,9 +652,14 @@ export default function Page() {
|
||||
)}
|
||||
|
||||
{members.length === 0 && (
|
||||
<Flex align="center" mt="2" direction="column">
|
||||
<Heading>No tanks selected</Heading>
|
||||
<Text>
|
||||
<Flex
|
||||
align="center"
|
||||
justify="center"
|
||||
direction="column"
|
||||
style={{ flex: 1 }}
|
||||
>
|
||||
<Heading color="gray">No tanks selected</Heading>
|
||||
<Text color="gray">
|
||||
Press the <PlusIcon /> Add button to get started
|
||||
</Text>
|
||||
</Flex>
|
||||
|
||||
@@ -13,7 +13,14 @@ export default function PageWrapper({
|
||||
...props
|
||||
}: PageWrapperProps) {
|
||||
return (
|
||||
<Theme accentColor={color}>
|
||||
<Theme
|
||||
accentColor={color}
|
||||
style={{
|
||||
flex: 1,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
>
|
||||
<Flex
|
||||
direction="column"
|
||||
gap="4"
|
||||
@@ -23,6 +30,7 @@ export default function PageWrapper({
|
||||
margin: 'auto',
|
||||
padding: 16,
|
||||
boxSizing: 'border-box',
|
||||
flex: 1,
|
||||
|
||||
...style,
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user