From 282c652c631feaf24f34ef289bf1bc9ea3feceb9 Mon Sep 17 00:00:00 2001 From: Margarita Date: Thu, 20 Apr 2023 21:26:49 +0400 Subject: [PATCH] feat(in-536): mobile header bugfix --- src/features/GlobalStyles/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/features/GlobalStyles/index.tsx b/src/features/GlobalStyles/index.tsx index 50e67728..33028585 100644 --- a/src/features/GlobalStyles/index.tsx +++ b/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 {