@@ -16,41 +16,6 @@ import Help from "./Menu/Help";
1616import Settings from "./Menu/Settings" ;
1717import { DisconnectWalletButton } from "./Menu/Settings/General" ;
1818
19- const Container = styled . div < { isOpen : boolean } > `
20- position: absolute;
21- top: 64px;
22- left: 0;
23- right: 0;
24- max-height: calc(100vh - 64px);
25- overflow-y: auto;
26- z-index: 1;
27- background-color: ${ ( { theme } ) => theme . whiteBackground } ;
28- box-shadow: 0px 2px 3px ${ ( { theme } ) => theme . defaultShadow } ;
29- transform-origin: top;
30- transform: scaleY(${ ( { isOpen } ) => ( isOpen ? "1" : "0" ) } );
31- visibility: ${ ( { isOpen } ) => ( isOpen ? "visible" : "hidden" ) } ;
32- transition-property: transform, visibility;
33- transition-duration: ${ ( { theme } ) => theme . transitionSpeed } ;
34- transition-timing-function: ease;
35- padding: 24px;
36-
37- hr {
38- margin: 24px 0;
39- }
40- ` ;
41-
42- const WalletContainer = styled . div `
43- display: flex;
44- gap: 16px;
45- justify-content: space-between;
46- flex-wrap: wrap;
47- ` ;
48-
49- const DisconnectWalletButtonContainer = styled . div `
50- display: flex;
51- align-items: center;
52- ` ;
53-
5419export interface ISettings {
5520 toggleIsSettingsOpen : ( ) => void ;
5621}
@@ -73,7 +38,14 @@ const NavBar: React.FC = () => {
7338
7439 return (
7540 < >
76- < Container { ...{ isOpen } } >
41+ < div
42+ className = {
43+ "absolute top-16 left-0 right-0 max-h-[calc(100vh-64px)] overflow-y-auto z-1 bg-klerosUIComponentsWhiteBackground shadow-default p-6 [&_hr]:my-6 " +
44+ `origin-top transform-${ isOpen ? "scaleY(1)" : "scaleY(0)" } visibility-${
45+ isOpen ? "visible" : "hidden"
46+ } transition-[transform,visibility] duration-[klerosUIComponentsTransitionSpeed] ease-in-out`
47+ }
48+ >
7749 < LightButton
7850 text = "Kleros Solutions"
7951 onClick = { ( ) => {
@@ -84,18 +56,18 @@ const NavBar: React.FC = () => {
8456 < hr />
8557 < Explore isMobileNavbar = { true } />
8658 < hr />
87- < WalletContainer >
59+ < div className = "flex gap-4 justify-between flex-wrap" >
8860 < ConnectWallet />
8961 { isConnected && (
90- < DisconnectWalletButtonContainer >
62+ < div className = "flex items-center" >
9163 < DisconnectWalletButton />
92- </ DisconnectWalletButtonContainer >
64+ </ div >
9365 ) }
94- </ WalletContainer >
66+ </ div >
9567 < hr />
9668 < Menu { ...{ toggleIsHelpOpen, toggleIsSettingsOpen } } />
9769 < br />
98- </ Container >
70+ </ div >
9971 { ( isDappListOpen || isHelpOpen || isSettingsOpen ) && (
10072 < OverlayPortal >
10173 < Overlay >
0 commit comments