Skip to content

Commit

Permalink
fixed overflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Mar 18, 2024
1 parent f755e61 commit 43fda1f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
5 changes: 4 additions & 1 deletion src/app/components/BottomNav/BottomNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const BottomNavbar = () => {
const dispatch = useDispatch();

return (
<nav className='bg-background/50 sticky bottom-0 left-0 flex w-full justify-between bg-opacity-10 bg-clip-padding p-4 px-8 saturate-200 backdrop-blur-xl backdrop-filter'>
<nav
style={{ zIndex: 2000 }}
className='bg-background/50 fixed bottom-0 flex w-full justify-between overflow-hidden bg-opacity-10 bg-clip-padding p-4 px-8 saturate-200 backdrop-blur-xl backdrop-filter'
>
<Link href='/home'>
<Home
onClick={() => {
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function Activity() {
<motion.div
layoutId='activity'
transition={{ duration: 0.4 }}
className='bg-muted absolute w-full rounded-full text-xl '
className='bg-muted w-full rounded-full text-xl '
>
<Card className=''>
<CardHeader>
Expand All @@ -67,7 +67,7 @@ export default function Activity() {
</motion.div>
</CardHeader>
<CardContent className=''>
<div className='mt-4 space-y-8'>
<div className='mt-4 space-y-8'>
{transactions &&
transactions.map((transaction: any, i: any) => (
<motion.div
Expand All @@ -78,7 +78,7 @@ export default function Activity() {
<RecentTransaction transaction={transaction} />
</motion.div>
))}
</div>
</div>
</CardContent>
<CardFooter className='justify-center space-x-2'>
<Link
Expand Down
10 changes: 4 additions & 6 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ export default function RootLayout({
<PersistGate loading={null} persistor={persistor}>
<WagmiProvider config={config!}>
<QueryClientProvider client={queryClient}>
<AnimatePresence
mode='wait'
initial={false}
onExitComplete={() => window.scrollTo(0, 0)}
>
<AnimatePresence mode='wait' initial={false}>
<LayoutGroup>
<div>{auth}</div>
<div>{drawer}</div>
Expand All @@ -166,8 +162,10 @@ export default function RootLayout({
className='min-h-[100vh] text-gray-300'
>
{children}
<BottomNavbar />
</main>
<div className='w-full overflow-hidden'>
<BottomNavbar />
</div>
</LayoutGroup>
</AnimatePresence>
</QueryClientProvider>
Expand Down

0 comments on commit 43fda1f

Please sign in to comment.