We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc8188 commit 1a5e7e9Copy full SHA for 1a5e7e9
packages/app/src/embed/components/Sidebar/elements.js
@@ -1,10 +1,14 @@
1
// @flow
2
import styled from 'styled-components';
3
+import { isIOS } from '@codesandbox/common/lib/utils/platform';
4
5
export const Container = styled.div`
6
flex: 250px;
7
width: 250px;
- height: 100%;
8
+ /* There is a bug with ios that causes the sidebar to be longer than the preview, when you then
9
+ * scroll the preview it scrolls the editor down (page is longer). If I set this to 100% scrolling
10
+ * is broken in Chrome though. That's why we have this check */
11
+ height: ${isIOS ? '100%' : '100vh'};
12
color: rgba(255, 255, 255, 0.8);
13
z-index: 10;
14
background-color: ${props => props.theme.sidebar};
0 commit comments