fix: editor scrolling not working

This commit is contained in:
Daniel Lautzenheiser
2023-01-22 00:48:16 -05:00
parent 6d9478f8f7
commit c1860c072d
4 changed files with 2 additions and 10 deletions

View File

@ -92,8 +92,6 @@ const Editor = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [collection, createBackup, slug]);
console.log('VERSION', version);
const [submitted, setSubmitted] = useState(false);
const handlePersistEntry = useCallback(
(opts: EditorPersistOptions = {}) => {

View File

@ -55,17 +55,16 @@ const Editor = styled('div')`
interface PreviewPaneContainerProps {
$blockEntry?: boolean;
$overFlow?: boolean;
}
const PreviewPaneContainer = styled(
'div',
transientOptions,
)<PreviewPaneContainerProps>(
({ $blockEntry, $overFlow }) => `
({ $blockEntry }) => `
height: 100%;
pointer-events: ${$blockEntry ? 'none' : 'auto'};
overflow-y: ${$overFlow ? 'auto' : 'hidden'};
overflow-y: auto;
`,
);