Skip to content

Commit

Permalink
fix(Layout): fix overflow scrolling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Jan 31, 2020
1 parent c1cb17b commit 372f2ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { replace } from 'ramda'
import Alerts from 'components/Alerts'
import ErrorBoundary from 'providers/ErrorBoundaryProvider'
import ExchangeMenu from 'scenes/Exchange/Menu'
import ExchangeProfileMenu from 'scenes/Settings/Profile/Menu'
import Header from './Header'
import MenuLeft from './MenuLeft'
Expand All @@ -20,9 +19,9 @@ const Wrapper = styled.div`
`
const Container = styled.div`
display: flex;
position: relative;
height: 100%;
width: 100%;
overflow-y: auto;
`
const Nav = styled.div`
flex: 0 0 60px;
Expand Down Expand Up @@ -61,11 +60,6 @@ const WalletLayout = props => {
<MenuLeft location={location} />
<TrayRight />
<Content data-e2e={`page${replace(/\//g, '-', location.pathname)}`}>
{location.pathname.includes('/swap') && (
<ExchangeMenu
historySelected={location.pathname.includes('/swap/history')}
/>
)}
{location.pathname.includes('/settings/addresses') && (
<SettingsAddressesMenu location={location} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ import React from 'react'
import styled from 'styled-components'

const Wrapper = styled.div`
background-color: ${props => props.theme.white};
position: sticky;
width: 100%;
z-index: 1;
top: 0;
`

const SupportButton = styled(Button)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import EmailRequired from 'components/EmailRequired'
import Exchange from './ExchangeContainer'
import GetStarted from './GetStarted'
import media from 'services/ResponsiveService'
import Menu from './Menu'
import React from 'react'
import styled from 'styled-components'

Expand All @@ -16,7 +17,6 @@ const Wrapper = styled.div`
height: 100%;
display: flex;
flex-direction: column;
min-height: 600px;
`

const Container = styled.section`
Expand Down Expand Up @@ -58,6 +58,7 @@ export const ExchangeScene = ({
<Wrapper>
{userCreated ? (
<>
<Menu />
<Container>
<Column>
<Exchange
Expand Down

0 comments on commit 372f2ae

Please sign in to comment.