Skip to content

Commit

Permalink
fix connection status
Browse files Browse the repository at this point in the history
  • Loading branch information
tnfAngel committed May 10, 2024
1 parent 1b76ab4 commit db1c40b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function RootLayout({
}}
>
<AppWrapper>
<Flex h='100%' w='100%' direction='column'>
<Flex h='100%' w='100%' direction='column' gap='0px'>
<ConnectionStatus />
<Box w='100%' h='100%' zIndex={1}>
{children}
Expand Down
19 changes: 14 additions & 5 deletions src/components/general/ConnectionStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,24 @@ export default function ConnectionStatus() {
<Center
as={motion.div}
w='100%'
bg={getColorValue('ternaryBackground')}
initial={{ height: '0px' }}
animate={{ height: '32px', transition: { delay: 2 } }}
exit={{ height: '0px' }}
p='0px'
>
<Flex alignItems='center' gap='10px' zIndex={0}>
{statusSignals[statusIndex]}
<Text fontWeight='bold'>Connecting...</Text>
</Flex>
<Center
w='100%'
h='32px'
top='0%'
left='0%'
bg={getColorValue('ternaryBackground')}
position='fixed'
>
<Flex alignItems='center' gap='10px' zIndex={0}>
{statusSignals[statusIndex]}
<Text fontWeight='bold'>Connecting...</Text>
</Flex>
</Center>
</Center>
)}
</AnimatePresence>
Expand Down

0 comments on commit db1c40b

Please sign in to comment.