Skip to content

Commit 7f8d788

Browse files
committed
Fixed mobile view
1 parent 9b52f04 commit 7f8d788

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

demo/src/App.scss

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,16 @@ pre {
122122
}
123123
}
124124

125-
.sidebar {
126-
display: none;
125+
.sidebar-container {
126+
display: none !important;
127127
}
128128

129-
.all-content {
130-
top: 0px !important;
129+
.docs-main-container {
130+
left: 0 !important;
131+
top: 0 !important;
131132
}
132133

133-
.main {
134-
position: fixed;
135-
left: inherit !important;
136-
right: inherit !important;
137-
top: 80px !important;
138-
bottom: inherit !important;
139-
height: inherit !important;
140-
width: 100% !important;
141-
overflow: auto !important;
134+
.all-content {
135+
top: 0px !important;
142136
}
143137
}

demo/src/docs/Docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const Docs = () => {
5050
</div>
5151

5252
</Space.Left>
53-
<Space.Fill className="main" scrollable={true} style={{ padding: 30, paddingTop: 0 }}>
53+
<Space.Fill className="docs-main" scrollable={true} style={{ padding: 30, paddingTop: 0 }}>
5454

5555
<Intro />
5656
<GettingStarted />

demo/src/ui-demo/UI.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const Editor: React.FC = (props) => {
4444
const [ code, setCode ] = React.useState('import * as React from \'react\';\r\nimport * as Space from \'react-spaces\';\r\n\r\nexport const App = () => {\r\n <Space.ViewPort>\r\n <Space.Top size={30}>\r\n Hello!\r\n </Space.Top>\r\n <Space.Fill>\r\n World!\r\n </Space.Fill>\r\n </Space.ViewPort>\r\n}');
4545

4646
const options = {
47-
selectOnLineNumbers: true
47+
selectOnLineNumbers: true,
48+
automaticLayout: true
4849
};
4950

5051
return (

0 commit comments

Comments
 (0)