Skip to content

Commit

Permalink
Zoom-out and Device preview: use 40px padding consistently (#66018)
Browse files Browse the repository at this point in the history
Co-authored-by: richtabor <richtabor@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored Oct 10, 2024
1 parent cff0bf5 commit 5bac40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ export default function useResizeCanvas( deviceType ) {
return deviceWidth < actualWidth ? deviceWidth : actualWidth;
};

const marginValue = () => ( window.innerHeight < 800 ? 36 : 64 );

const contentInlineStyles = ( device ) => {
const height = device === 'Mobile' ? '768px' : '1024px';
const marginVertical = marginValue() + 'px';
const marginVertical = '40px';
const marginHorizontal = 'auto';

switch ( device ) {
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function VisualEditor( {
isZoomedOut && ! isTabletViewport
? {
scale: 'default',
frameSize: '48px',
frameSize: '40px',
}
: {};

Expand Down

0 comments on commit 5bac40d

Please sign in to comment.