-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Post Editor: Fix browser console error when changing device preview mode #53969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Size Change: +16 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this up @t-hamano!
✅ Confirmed the error appears on trunk
✅ Confirmed the error no longer appears with this PR applied
✅ Additional marginLeft
and marginRight
rules appear to be safe due to the width: 100%
rule. Tested with iframed and non-iframed editor, on Chrome, Safari, FF, and Edge on Mac
LGTM! ✨
Thanks for the review, @andrewserong! |
What?
This PR fixes browser console errors when changing device preview mode in the Post Editor.
d3af6bd199de390b9b99763686a4d202.mp4
Why?
In motion, it does not seem to be allowed to animate the margin from
0
toauto
.How?
I have tried
margin: '0 auto'
,margin: 0px auto
, etc., but could not get rid of the error. Finally, I was able to solve the problem by applying auto margin only to the left and right sides.Testing Instructions