Adjust editor width dynamically
This commit is contained in:
parent
5ca98dac68
commit
1bac90f12d
@ -70,7 +70,7 @@ function ReactSplitPaneGlobalStyles() {
|
|||||||
|
|
||||||
const StyledSplitPane = styled.div`
|
const StyledSplitPane = styled.div`
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
grid-template-columns: min(864px, 50%) auto;;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
> div:nth-child(2)::before {
|
> div:nth-child(2)::before {
|
||||||
|
@ -14,7 +14,7 @@ interface PreviewContentProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const StyledPreviewContent = styled.div`
|
const StyledPreviewContent = styled.div`
|
||||||
width: calc(50% - 2px);
|
width: calc(100% - min(864px, 50%));
|
||||||
top: 66px;
|
top: 66px;
|
||||||
right: 0;
|
right: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -55,6 +55,7 @@ import {
|
|||||||
parsePointerFile,
|
parsePointerFile,
|
||||||
getPointerFileForMediaFileObj,
|
getPointerFileForMediaFileObj,
|
||||||
} from './git-lfs';
|
} from './git-lfs';
|
||||||
|
import transientOptions from './transientOptions';
|
||||||
|
|
||||||
import type { PointerFile as PF } from './git-lfs';
|
import type { PointerFile as PF } from './git-lfs';
|
||||||
import type { FetchError as FE, ApiRequest as AR } from './API';
|
import type { FetchError as FE, ApiRequest as AR } from './API';
|
||||||
@ -207,4 +208,5 @@ export {
|
|||||||
allEntriesByFolder,
|
allEntriesByFolder,
|
||||||
AccessTokenError,
|
AccessTokenError,
|
||||||
throwOnConflictingBranches,
|
throwOnConflictingBranches,
|
||||||
|
transientOptions,
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import styled from '@emotion/styled';
|
import styled from '@emotion/styled';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import transientOptions from 'netlify-cms-lib-util';
|
import { transientOptions } from 'netlify-cms-lib-util';
|
||||||
|
|
||||||
import Icon from './Icon';
|
import Icon from './Icon';
|
||||||
import { buttons, colors, lengths } from './styles';
|
import { buttons, colors, lengths } from './styles';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user