Skip to content

Commit

Permalink
added css to fix iphone bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Apr 13, 2024
1 parent 76c98cc commit fc0839c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function RootLayout({
<WagmiProvider config={config!}>
<QueryClientProvider client={queryClient}>
<LayoutGroup>
<div style={{height: '100vh'}} className=' justify-center'>
<div id='wrapper' className=' '>
<div
vaul-drawer-wrapper=''
className='relative h-full w-full justify-center overflow-hidden'
Expand Down
29 changes: 29 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@
@tailwind components;
@tailwind utilities;


HTML, BODY {
height: 100%;
width: 100%;
height: 100vh;
width: 100vw;
margin:0;
padding:0;
/* required to prevent rogue scrollbars */
overflow: hidden;
/* cosmetic stuff: */
background-color:#020817;
}

#wrapper {
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
padding:0;
margin:0;
/* if you want the content to scroll normally: */
overflow: auto;
/* cosmetic stuff: */
background-color:#020817;
box-sizing:border-box;
}

/* * {
touch-action: none;
} */
Expand Down

0 comments on commit fc0839c

Please sign in to comment.