add visibility padding to the bottom of the editor wrapper

This commit is contained in:
ghalestrilo 2020-08-07 14:17:26 -03:00
parent dfedc81f66
commit 34be0e700d

View file

@ -2,7 +2,10 @@ import React from 'react';
import styled from 'styled-components';
import { remSize } from '../../theme';
// Applies padding to top and bottom so editor content is always visible
export default styled.div`
z-index: 0;
margin-top: ${remSize(16)};
.CodeMirror-sizer > * { padding-bottom: ${remSize(320)}; };
`;