@@ -16,12 +16,26 @@ import Settings from "./Menu/Settings";
1616import { DisconnectWalletButton } from "./Menu/Settings/General" ;
1717import { PopupContainer } from ".." ;
1818
19+ const Wrapper = styled . div < { isOpen : boolean } > `
20+ visibility: ${ ( { isOpen } ) => ( isOpen ? "visible" : "hidden" ) } ;
21+ position: absolute;
22+ top: 100%;
23+ left: 0;
24+ width: 100vw;
25+ height: 100vh;
26+ z-index: 30;
27+ ` ;
28+
29+ const StyledOverlay = styled ( Overlay ) `
30+ top: unset;
31+ ` ;
32+
1933const Container = styled . div < { isOpen : boolean } > `
2034 position: absolute;
21- top: 64px ;
35+ top: 0 ;
2236 left: 0;
2337 right: 0;
24- max-height: calc(100vh - 64px );
38+ max-height: calc(100vh - 160px );
2539 overflow-y: auto;
2640 z-index: 1;
2741 background-color: ${ ( { theme } ) => theme . whiteBackground } ;
@@ -74,29 +88,32 @@ const NavBar: React.FC = () => {
7488
7589 return (
7690 < >
77- < Container { ...{ isOpen } } >
78- < LightButton
79- text = "Kleros Solutions"
80- onClick = { ( ) => {
81- toggleIsDappListOpen ( ) ;
82- } }
83- Icon = { KlerosSolutionsIcon }
84- />
85- < hr />
86- < Explore />
87- < hr />
88- < WalletContainer >
89- < ConnectWallet />
90- { isConnected && (
91- < DisconnectWalletButtonContainer >
92- < DisconnectWalletButton />
93- </ DisconnectWalletButtonContainer >
94- ) }
95- </ WalletContainer >
96- < hr />
97- < Menu { ...{ toggleIsHelpOpen, toggleIsSettingsOpen } } />
98- < br />
99- </ Container >
91+ < Wrapper { ...{ isOpen } } >
92+ < StyledOverlay />
93+ < Container { ...{ isOpen } } >
94+ < LightButton
95+ text = "Kleros Solutions"
96+ onClick = { ( ) => {
97+ toggleIsDappListOpen ( ) ;
98+ } }
99+ Icon = { KlerosSolutionsIcon }
100+ />
101+ < hr />
102+ < Explore />
103+ < hr />
104+ < WalletContainer >
105+ < ConnectWallet />
106+ { isConnected && (
107+ < DisconnectWalletButtonContainer >
108+ < DisconnectWalletButton />
109+ </ DisconnectWalletButtonContainer >
110+ ) }
111+ </ WalletContainer >
112+ < hr />
113+ < Menu { ...{ toggleIsHelpOpen, toggleIsSettingsOpen } } />
114+ < br />
115+ </ Container >
116+ </ Wrapper >
100117 { ( isDappListOpen || isHelpOpen || isSettingsOpen ) && (
101118 < PopupContainer >
102119 < Overlay />
0 commit comments