✨ add visibility padding to the bottom of the editor wrapper
This commit is contained in:
parent
dfedc81f66
commit
34be0e700d
1 changed files with 3 additions and 0 deletions
|
@ -2,7 +2,10 @@ import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { remSize } from '../../theme';
|
import { remSize } from '../../theme';
|
||||||
|
|
||||||
|
// Applies padding to top and bottom so editor content is always visible
|
||||||
|
|
||||||
export default styled.div`
|
export default styled.div`
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
margin-top: ${remSize(16)};
|
margin-top: ${remSize(16)};
|
||||||
|
.CodeMirror-sizer > * { padding-bottom: ${remSize(320)}; };
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in a new issue