Skip to content

Commit 41cac99

Browse files
committed
fix(web): overlay issue and stying
1 parent 4e1bb50 commit 41cac99

File tree

6 files changed

+30
-29
lines changed

6 files changed

+30
-29
lines changed

web/src/components/Overlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export const Overlay = styled.div`
77
width: 100vw;
88
height: 100vh;
99
background-color: ${({ theme }) => theme.blackLowOpacity};
10-
z-index: 1;
10+
z-index: 30;
1111
`;

web/src/layout/Header/navbar/DappList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const Container = styled.div`
4949
5050
${landscapeStyle(
5151
() => css`
52-
margin-top: 94px;
52+
margin-top: 64px;
5353
top: 0;
5454
left: 0;
5555
right: auto;

web/src/layout/Header/navbar/Menu/Help.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Container = styled.div`
3838
3939
${landscapeStyle(
4040
() => css`
41-
margin-top: 94px;
41+
margin-top: 64px;
4242
width: 260px;
4343
top: 0;
4444
right: 0;

web/src/layout/Header/navbar/Menu/Settings/Notifications/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const StyledA = styled.a`
5151
display: flex;
5252
justify-content: center;
5353
gap: 4px;
54-
margin-top: 94px;
54+
margin-top: 64px;
5555
margin-bottom: 110px;
5656
font-size: 16px;
5757

web/src/layout/Header/navbar/Menu/Settings/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Container = styled.div`
3131
3232
${landscapeStyle(
3333
() => css`
34-
margin-top: 94px;
34+
margin-top: 64px;
3535
top: 0;
3636
right: 0;
3737
left: auto;

web/src/layout/Header/navbar/index.tsx

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,30 +105,31 @@ const NavBar: React.FC = () => {
105105
return (
106106
<>
107107
<Wrapper {...{ isOpen }}>
108-
<StyledOverlay />
109-
<Container {...{ isOpen }}>
110-
<LightButton
111-
text="Kleros Solutions"
112-
onClick={() => {
113-
toggleIsDappListOpen();
114-
}}
115-
Icon={KlerosSolutionsIcon}
116-
/>
117-
<hr />
118-
<Explore />
119-
<hr />
120-
<WalletContainer>
121-
<ConnectWallet />
122-
{isConnected && (
123-
<DisconnectWalletButtonContainer>
124-
<DisconnectWalletButton />
125-
</DisconnectWalletButtonContainer>
126-
)}
127-
</WalletContainer>
128-
<hr />
129-
<Menu {...{ toggleIsHelpOpen, toggleIsSettingsOpen }} />
130-
<br />
131-
</Container>
108+
<StyledOverlay>
109+
<Container {...{ isOpen }}>
110+
<LightButton
111+
text="Kleros Solutions"
112+
onClick={() => {
113+
toggleIsDappListOpen();
114+
}}
115+
Icon={KlerosSolutionsIcon}
116+
/>
117+
<hr />
118+
<Explore />
119+
<hr />
120+
<WalletContainer>
121+
<ConnectWallet />
122+
{isConnected && (
123+
<DisconnectWalletButtonContainer>
124+
<DisconnectWalletButton />
125+
</DisconnectWalletButtonContainer>
126+
)}
127+
</WalletContainer>
128+
<hr />
129+
<Menu {...{ toggleIsHelpOpen, toggleIsSettingsOpen }} />
130+
<br />
131+
</Container>
132+
</StyledOverlay>
132133
</Wrapper>
133134
{(isDappListOpen || isHelpOpen || isSettingsOpen) && (
134135
<PopupContainer>

0 commit comments

Comments
 (0)