diff --git a/core/docz-theme-default/src/components/shared/Sidebar/index.tsx b/core/docz-theme-default/src/components/shared/Sidebar/index.tsx index 57a71d270..bde5de7cf 100644 --- a/core/docz-theme-default/src/components/shared/Sidebar/index.tsx +++ b/core/docz-theme-default/src/components/shared/Sidebar/index.tsx @@ -45,6 +45,7 @@ const Wrapper = styled.div` @media screen and (max-width: ${breakpoints.desktop - 1}px) { transform: translateX(${p => (p.opened ? '-100%' : '0')}); + position: ${p => (p.opened ? 'auto' : 'fixed')}; } ${get('styles.sidebar')};