Skip to content

Commit

Permalink
iPhone X support
Browse files Browse the repository at this point in the history
Adds support for the iPhone X safe area insets.

Link: https://webkit.org/blog/7929/designing-websites-for-iphone-x/

Here’s a preview of what it looks like: https://twitter.com/codeOfRobin/status/981473964223430658

Signed-off-by: Robin Malhotra <[email protected]>
  • Loading branch information
codeOfRobin committed Apr 4, 2018
1 parent 27ba612 commit fcc6394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/src/components/navigation-mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const MobileNavigation = () => (
borderTop: `1px solid ${colors.ui.light}`,
background: colors.ui.whisper,
fontFamily: typography.options.headerFontFamily.join(`,`),
paddingBottom: `env(safe-area-inset-bottom)`,
[presets.Tablet]: {
display: `none`,
},
Expand Down
2 changes: 1 addition & 1 deletion www/src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class HTML extends React.Component {
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<link
rel="apple-touch-icon"
Expand Down

0 comments on commit fcc6394

Please sign in to comment.