Skip to content

Commit 8ad5f83

Browse files
authored
Merge pull request #173 from webiny/feat/full-screen-cms-live-preview
feat: add customizations for the fullscreen editor
2 parents ac5105a + 7697e5b commit 8ad5f83

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cms-live-preview/5.42.x/extensions/admin/src/AddPreviewPane.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const { ContentEntry } = ContentEntryEditorConfig;
99

1010
const SplitView = styled.div`
1111
display: flex;
12+
width: 95vw; // Remove this line in case you are using the legacy entry editor ("cmsLegacyEntryEditor" flag is equal to true).
1213
> div {
1314
flex: 1;
1415
}

cms-live-preview/5.42.x/extensions/admin/src/PreviewPane.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ const LivePreviewContainer = styled.div`
77
display: flex;
88
flex-direction: column;
99
border-right: 1px solid var(--mdc-theme-on-background);
10+
11+
// Use a media query to disable the preview pane for screens under 960px wide (or any other preferred width).
12+
// You can remove this line in case you are using the legacy entry editor ("cmsLegacyEntryEditor" flag is equal to true).
13+
@media screen and (max-width: 960px) {
14+
display: none;
15+
}
1016
`;
1117

1218
const Location = styled.div`

0 commit comments

Comments
 (0)