Skip to content

Commit f6382e8

Browse files
committed
Header NodeUI tweaks
Signed-off-by: Mantas Domaševičius <mantas@mysterium.network>
1 parent c99d2ba commit f6382e8

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

src/Pages/Authenticated/Components/Layout/Header.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { themeCommon } from '../../../../theme/themeCommon'
1818
import { useMediaQuery } from 'react-responsive'
1919
import { media } from '../../../../commons/media'
2020
import { MobileHeader } from '../../Navigation/Mobile/MobileHeader'
21+
import { LayoutRow } from './Layout'
2122

2223
const Container = styled.div`
2324
display: flex;
@@ -55,7 +56,8 @@ const Group = styled.div`
5556
const MobileHeaderMargin = styled.div`
5657
display: flex;
5758
justify-content: center;
58-
margin-top: 120px;
59+
margin-top: 86px;
60+
width: 100%;
5961
`
6062

6163
interface Props {
@@ -67,9 +69,11 @@ export const Header = ({ logo, title }: Props) => {
6769
const isMobile = useMediaQuery(media.isMobileQuery)
6870
if (isMobile) {
6971
return (
70-
<MobileHeaderMargin>
71-
<MobileHeader />
72-
</MobileHeaderMargin>
72+
<LayoutRow>
73+
<MobileHeaderMargin>
74+
<MobileHeader />
75+
</MobileHeaderMargin>
76+
</LayoutRow>
7377
)
7478
}
7579
return (

src/Pages/Authenticated/Navigation/Mobile/MobileHeader.tsx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Grid = styled.div`
1515
display: grid;
1616
grid-template-columns: 1fr 1fr;
1717
height: 144px;
18-
width: 90%;
18+
width: 100%;
1919
min-width: 300px;
2020
border-radius: 20px;
2121
background-color: ${({ theme }) => theme.bgSettlementMobile};
@@ -46,19 +46,32 @@ const Cell = styled.div`
4646
align-items: center;
4747
`
4848

49+
const Padded = styled.div`
50+
padding: 0 8px 0 8px;
51+
width: 100%;
52+
`
53+
4954
export const MobileHeader = () => {
5055
return (
5156
<Grid>
5257
<Cell>
53-
<NodeStatus />
58+
<Padded>
59+
<NodeStatus />
60+
</Padded>
61+
</Cell>
62+
<Cell>
63+
<Padded>
64+
<NATStatus />
65+
</Padded>
5466
</Cell>
5567
<Cell>
56-
<NATStatus />
68+
<Padded>
69+
<Quality />
70+
</Padded>
5771
</Cell>
5872
<Cell>
59-
<Quality />
73+
<SettlementStatus />
6074
</Cell>
61-
<Cell>{<SettlementStatus />}</Cell>
6275
</Grid>
6376
)
6477
}

0 commit comments

Comments
 (0)