feat: flex 1 pages

This commit is contained in:
TrèsAbhi committed 2024-04-06 12:49:38 -05:00
1 parent f0b905593c
commit f516c9275e
3 files changed
+19 -11

No files matched your search

+2 -7
View File
@@ -100,14 +100,9 @@ export default function RootLayout({ children }: RootLayoutProps) {
</AlertDialog.Content> </AlertDialog.Content>
</AlertDialog.Root> </AlertDialog.Root>
<Flex direction="column">{children}</Flex> {children}
{!isEmbed && !isFullScreen && ( {!isEmbed && !isFullScreen && <Footer />}
<>
<div style={{ flex: 1 }} />
<Footer />
</>
)}
</Flex> </Flex>
</Theme> </Theme>
</body> </body>
+8 -3
View File
@@ -652,9 +652,14 @@ export default function Page() {
)} )}
{members.length === 0 && ( {members.length === 0 && (
<Flex align="center" mt="2" direction="column"> <Flex
<Heading>No tanks selected</Heading> align="center"
<Text> 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 Press the <PlusIcon /> Add button to get started
</Text> </Text>
</Flex> </Flex>
+9 -1
View File
@@ -13,7 +13,14 @@ export default function PageWrapper({
...props ...props
}: PageWrapperProps) { }: PageWrapperProps) {
return ( return (
<Theme accentColor={color}> <Theme
accentColor={color}
style={{
flex: 1,
display: 'flex',
flexDirection: 'column',
}}
>
<Flex <Flex
direction="column" direction="column"
gap="4" gap="4"
@@ -23,6 +30,7 @@ export default function PageWrapper({
margin: 'auto', margin: 'auto',
padding: 16, padding: 16,
boxSizing: 'border-box', boxSizing: 'border-box',
flex: 1,
...style, ...style,
}} }}