diff --git a/package.json b/package.json index 8eb3d956..ada3ffb9 100644 --- a/package.json +++ b/package.json @@ -135,6 +135,7 @@ "react-sidebar": "^2.2.1", "react-simple-dnd": "^0.1.2", "react-sortable": "^1.2.0", + "react-split-pane": "^0.1.57", "react-toolbox": "^1.2.1", "react-topbar-progress-indicator": "^1.0.0", "react-waypoint": "^3.1.3", diff --git a/src/components/EntryEditor/EntryEditor.css b/src/components/EntryEditor/EntryEditor.css index bb047a7e..70a8aa4f 100644 --- a/src/components/EntryEditor/EntryEditor.css +++ b/src/components/EntryEditor/EntryEditor.css @@ -4,34 +4,37 @@ } .root { - position: absolute; - top: 0; - bottom: 0; - display: flex; - flex-direction: column; - width: 100%; -} -.container { - display: flex; - flex: 1; -} - -.footer { - flex: 0; - padding: 10px 20px; - border-top: 1px solid var(--defaultColorLight); - background: var(--backgroundColor); - text-align: right; } .controlPane { - flex: 1; + height: calc(100% - 55px); overflow: auto; padding: 0 20px; border-right: 1px solid var(--defaultColorLight); } .previewPane { - flex: 1; + height: calc(100% - 55px); +} + +.blocker { +} + +.blocker > * { + pointer-events: none; +} + + +.footer { + height: 55px; + padding: 10px 20px; + position: absolute; + z-index: 9999; + left: 0; + right: 0; + bottom: 0; + border-top: 1px solid var(--defaultColorLight); + background: var(--backgroundColor); + text-align: right; } diff --git a/src/components/EntryEditor/EntryEditor.js b/src/components/EntryEditor/EntryEditor.js index 92aae5c5..553beed7 100644 --- a/src/components/EntryEditor/EntryEditor.js +++ b/src/components/EntryEditor/EntryEditor.js @@ -1,59 +1,86 @@ -import React, { PropTypes } from 'react'; +import React, { Component, PropTypes } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; +import SplitPane from 'react-split-pane'; import { ScrollSync, ScrollSyncPane } from '../ScrollSync'; import ControlPane from '../ControlPanel/ControlPane'; import PreviewPane from '../PreviewPane/PreviewPane'; import Toolbar from './EntryEditorToolbar'; import styles from './EntryEditor.css'; -export default function EntryEditor( - { - collection, - entry, - fields, - getMedia, - onChange, - onAddMedia, - onRemoveMedia, - onPersist, - onCancelEdit, - }) { - return ( -