File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
packages/edit-site/src/components/layout Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,13 @@ export default function Layout() {
8787 } ) ;
8888 const disableMotion = useReducedMotion ( ) ;
8989 const isMobileViewport = useViewportMatch ( 'medium' , '<' ) ;
90- const canvasPadding = isMobileViewport ? 0 : 24 ;
9190 const showSidebar =
9291 ( isMobileViewport && ! isListPage ) ||
9392 ( ! isMobileViewport && ( canvasMode === 'view' || ! isEditorPage ) ) ;
9493 const showCanvas =
9594 ( isMobileViewport && isEditorPage && isEditing ) ||
9695 ! isMobileViewport ||
9796 ! isEditorPage ;
98- const showFrame =
99- ( ! isEditorPage && ! isMobileViewport ) ||
100- ( ! isMobileViewport && isEditorPage && canvasMode === 'view' ) ;
10197 const isFullCanvas =
10298 ( isMobileViewport && isListPage ) || ( isEditorPage && isEditing ) ;
10399 const [ canvasResizer , canvasSize ] = useResizeObserver ( ) ;
@@ -193,18 +189,13 @@ export default function Layout() {
193189 < SavePanel />
194190
195191 { showCanvas && (
196- < motion . div
192+ < div
197193 className = { classnames (
198194 'edit-site-layout__canvas-container' ,
199195 {
200196 'is-resizing' : isResizing ,
201197 }
202198 ) }
203- animate = { {
204- paddingTop : showFrame ? canvasPadding : 0 ,
205- paddingBottom : showFrame ? canvasPadding : 0 ,
206- } }
207- transition = { { duration : ANIMATION_DURATION } }
208199 >
209200 { canvasResizer }
210201 { ! ! canvasSize . width && (
@@ -254,7 +245,7 @@ export default function Layout() {
254245 </ ErrorBoundary >
255246 </ motion . div >
256247 ) }
257- </ motion . div >
248+ </ div >
258249 ) }
259250 </ div >
260251 </ div >
You can’t perform that action at this time.
0 commit comments