Skip to content

Commit

Permalink
Merge pull request #77 from drashmk/mobile-scroll
Browse files Browse the repository at this point in the history
[#76] Fixes numbers don't fit on screen anymore in mobile view
  • Loading branch information
konradkalemba authored May 17, 2020
2 parents ed91148 + 1bf0ac6 commit 3b43676
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/components/Layout/Mobile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ export default function Mobile() {
<div
className={css({
backgroundColor: theme.colors.backgroundPrimary,
padding: theme.sizing.scale600,
paddingBottom: 0,
padding: `${theme.sizing.scale600} 0 0 0`,
})}
>
<div
Expand All @@ -82,6 +81,7 @@ export default function Mobile() {
flexWrap: 'nowrap',
justifyContent: 'space-between',
alignItems: 'center',
padding: `0 ${theme.sizing.scale600}`,
})}
>
<HeadingSmall margin={0}>{t('coronavirusInPoland')}</HeadingSmall>
Expand Down Expand Up @@ -158,7 +158,10 @@ export default function Mobile() {
<div
className={css({
display: 'flex',
justifyContent: 'space-around',
justifyContent: 'flex-start',
overflow: 'auto',
flex: 1,
padding: `0 ${theme.sizing.scale600}`,
})}
>
<FlexGridItemCentered>
Expand Down Expand Up @@ -272,7 +275,14 @@ export default function Mobile() {
height: 'auto',
})}
>
<FlexGrid flexGridColumnCount={2}>
<FlexGrid
flexGridColumnCount={2}
className={css({
margin: `0 -${theme.sizing.scale600}`,
padding: `0 ${theme.sizing.scale600}`,
overflowX: 'auto',
flex: 1,
})}>
<FlexGridItem>
<Figure
data={hospitalizations}
Expand Down

1 comment on commit 3b43676

@vercel
Copy link

@vercel vercel bot commented on 3b43676 May 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.