Skip to content

Commit

Permalink
Ensure style card effect doesn't cause scrollbars to appear. (#44823)
Browse files Browse the repository at this point in the history
This happens when the spring animation overshoots
above scale(1) during the transition.
  • Loading branch information
mtias authored Oct 11, 2022
1 parent 73ff3e9 commit 7005d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/global-styles/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const StylesPreview = ( { label, isFocused, withHoverView } ) => {
return [
...styles,
{
css: 'body{min-width: 0;padding: 0;border: none;}',
css: 'html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}',
isGlobalStyles: true,
},
];
Expand Down

0 comments on commit 7005d47

Please sign in to comment.