Update editor, speed up sidebar

closes #694
This commit is contained in:
Tom Moor
2018-06-23 00:10:52 -07:00
parent fa4453a476
commit b8dda3bd65
4 changed files with 6 additions and 10 deletions

View File

@ -125,7 +125,7 @@ const Container = styled(Flex)`
const Content = styled(Flex)`
margin: 0;
transition: margin-left 200ms ease-in-out;
transition: margin-left 100ms ease-out;
@media print {
margin: 0;

View File

@ -8,16 +8,12 @@ import { observer, inject } from 'mobx-react';
import { CloseIcon, MenuIcon } from 'outline-icons';
import Flex from 'shared/components/Flex';
import AuthStore from 'stores/AuthStore';
import DocumentsStore from 'stores/DocumentsStore';
import UiStore from 'stores/UiStore';
type Props = {
children: React.Node,
history: Object,
location: Location,
auth: AuthStore,
documents: DocumentsStore,
ui: UiStore,
};
@ -61,7 +57,7 @@ const Container = styled(Flex)`
left: ${props => (props.editMode ? `-${props.theme.sidebarWidth}` : 0)};
width: 100%;
background: ${props => props.theme.smoke};
transition: left 200ms ease-in-out;
transition: left 100ms ease-out;
margin-left: ${props => (props.mobileSidebarVisible ? 0 : '-100%')};
z-index: 1;

View File

@ -158,7 +158,7 @@
"react-waypoint": "^7.3.1",
"redis": "^2.6.2",
"redis-lock": "^0.1.0",
"rich-markdown-editor": "1.3.3",
"rich-markdown-editor": "1.4.0-1",
"safestart": "1.1.0",
"sequelize": "4.28.6",
"sequelize-cli": "^2.7.0",

View File

@ -8859,9 +8859,9 @@ retry-axios@0.3.2, retry-axios@^0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/retry-axios/-/retry-axios-0.3.2.tgz#5757c80f585b4cc4c4986aa2ffd47a60c6d35e13"
rich-markdown-editor@1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-1.3.3.tgz#e10b718a6aafb2f3520f01c1de124314119c6154"
rich-markdown-editor@1.4.0-1:
version "1.4.0-1"
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-1.4.0-1.tgz#42238c2acfd4bd0a86a2cb233b3931ab47d76f70"
dependencies:
"@tommoor/slate-drop-or-paste-images" "^0.8.1"
boundless-arrow-key-navigation "^1.1.0"