File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ export const MainLayout: React.FC<MainLayoutProps> = ({ children }) => {
12
12
const { isLoggedIn } = useClientStore ( ) ;
13
13
14
14
return (
15
- < div className = "flex min-h-screen " >
15
+ < div className = "flex min-h-[100dvh] h-[100dvh] " >
16
16
< SideNav />
17
- < div className = "flex flex-col flex-1 relative" >
17
+ < div className = "flex flex-col flex-1 relative overflow-hidden " >
18
18
< Header className = "sticky top-0 z-50" />
19
- < main className = "flex-1 flex flex-col overflow-y-auto" >
19
+ < main className = "flex-1 flex flex-col overflow-y-auto overflow-x-hidden " >
20
20
{ children }
21
21
</ main >
22
22
{ isLoggedIn && < Footer className = "sticky bottom-0 z-50" /> }
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ describe('MainLayout', () => {
36
36
) ;
37
37
// Check for base layout classes.
38
38
expect ( container . firstChild ) . toHaveClass ( 'flex' ) ;
39
- expect ( container . firstChild ) . toHaveClass ( 'min-h-screen' ) ;
40
39
} ) ;
41
40
42
41
it ( 'does not render footer when user is logged out' , ( ) => {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const TradePage: React.FC = () => {
36
36
} ;
37
37
38
38
return (
39
- < div className = "flex flex-col flex-1 landscape:flex-row landscape:h-[100dvh] landscape:relative" >
39
+ < div className = "flex flex-col flex-1 landscape:flex-row landscape:h-[100dvh] h-[100dvh] landscape:relative" >
40
40
< div
41
41
className = "hidden landscape:block landscape:absolute landscape:top-0 landscape:left-0 landscape:right-0 landscape:bg-white landscape:z-10 border-b border-opacity-10"
42
42
id = "instrument-tab-bar"
@@ -65,7 +65,7 @@ export const TradePage: React.FC = () => {
65
65
</ div >
66
66
</ div >
67
67
68
- < div className = "flex flex-col flex-1 landscape:mt-[72px] h-[calc(100vh -200px)] landscape:h-[calc(100vh -72px)]" >
68
+ < div className = "flex flex-col flex-1 landscape:mt-[72px] h-[calc(100dvh -200px)] landscape:h-[calc(100dvh -72px)]" >
69
69
< Suspense fallback = { < div > Loading...</ div > } >
70
70
< Chart className = "flex-1" />
71
71
</ Suspense >
You can’t perform that action at this time.
0 commit comments