feat(in-536): mobile header bugfix

pull/177/head
Margarita 3 years ago
parent 3c7e8c3a75
commit 282c652c63
  1. 10
      src/features/GlobalStyles/index.tsx

@ -1,4 +1,6 @@
import { createGlobalStyle } from 'styled-components/macro'
import { createGlobalStyle, css } from 'styled-components/macro'
import { isMobileDevice } from 'config/userAgent'
export const GlobalStyles = createGlobalStyle`
*, *:before, *:after {
@ -8,6 +10,12 @@ export const GlobalStyles = createGlobalStyle`
html {
font-size: calc(2px + 1vw);
overflow-y: hidden;
${isMobileDevice
? css`
overflow-y: auto;
`
: ''};
}
body {

Loading…
Cancel
Save