File tree Expand file tree Collapse file tree 2 files changed +26
-9
lines changed
Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { themeCommon } from '../../../../theme/themeCommon'
1818import { useMediaQuery } from 'react-responsive'
1919import { media } from '../../../../commons/media'
2020import { MobileHeader } from '../../Navigation/Mobile/MobileHeader'
21+ import { LayoutRow } from './Layout'
2122
2223const Container = styled . div `
2324 display: flex;
@@ -55,7 +56,8 @@ const Group = styled.div`
5556const MobileHeaderMargin = styled . div `
5657 display: flex;
5758 justify-content: center;
58- margin-top: 120px;
59+ margin-top: 86px;
60+ width: 100%;
5961`
6062
6163interface 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 (
Original file line number Diff line number Diff 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+
4954export 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}
You can’t perform that action at this time.
0 commit comments