-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Autoscaling/sizing Block previews #16113
Commits on Aug 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for a4c2f85 - Browse repository at this point
Copy the full SHA a4c2f85View commit details -
Configuration menu - View commit details
-
Copy full SHA for a379c0f - Browse repository at this point
Copy the full SHA a379c0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20d479e - Browse repository at this point
Copy the full SHA 20d479eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5186e2c - Browse repository at this point
Copy the full SHA 5186e2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4b7d95 - Browse repository at this point
Copy the full SHA d4b7d95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 480e1d8 - Browse repository at this point
Copy the full SHA 480e1d8View commit details -
Use correct
createRef
from @wordpress/elementWas previously using React createRef. Addresses #16113 (comment)
Configuration menu - View commit details
-
Copy full SHA for 4e45237 - Browse repository at this point
Copy the full SHA 4e45237View commit details -
Revert "Update class namespaces to match package"
This reverts commit 24252fa887986548839e7d9a6fe2639807ed0bc6.
Configuration menu - View commit details
-
Copy full SHA for 96aa785 - Browse repository at this point
Copy the full SHA 96aa785View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa2573e - Browse repository at this point
Copy the full SHA fa2573eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84ad7b0 - Browse repository at this point
Copy the full SHA 84ad7b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5511495 - Browse repository at this point
Copy the full SHA 5511495View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9bdb50 - Browse repository at this point
Copy the full SHA f9bdb50View commit details -
Add some padding to the preview
Avoids Blocks butting up against the edges of the preview, especially if the preview wrapper has rounded corners which can cause the Blocks to be clipped.
Configuration menu - View commit details
-
Copy full SHA for 7cb2283 - Browse repository at this point
Copy the full SHA 7cb2283View commit details -
Configuration menu - View commit details
-
Copy full SHA for de50bfe - Browse repository at this point
Copy the full SHA de50bfeView commit details -
WIP: Adds zoom for small individual blocks
With small individual Blocks showing the preview at “actual size” (even when scaled to fit) is a bit odd. Everything still looks very zoomed out and far away. Updates to check DOM for largest element within the Block and use that width to calculate a “zoomed” scale value so that the contents of the Block itself is shown zoomed in. Still WIP
Configuration menu - View commit details
-
Copy full SHA for 0ffb3e7 - Browse repository at this point
Copy the full SHA 0ffb3e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69b6a68 - Browse repository at this point
Copy the full SHA 69b6a68View commit details -
Configuration menu - View commit details
-
Copy full SHA for f789d27 - Browse repository at this point
Copy the full SHA f789d27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 944d023 - Browse repository at this point
Copy the full SHA 944d023View commit details -
Revert "try: setting styles to shadow dom elements"
This reverts commit ea573f9. The reason being that there is no benefit of using shadow DOM and it introduces additional complexity.
Configuration menu - View commit details
-
Copy full SHA for 7fde7da - Browse repository at this point
Copy the full SHA 7fde7daView commit details -
Removes attempt at auto zoom on Block contents
After much experimenting we’ve decided that attempting to reliably detect the visual size of the Block’s visual contents is impossible. This is due to inconsistencies in the DOM markup of each Block. See #16113 (comment)
Configuration menu - View commit details
-
Copy full SHA for 5bceef3 - Browse repository at this point
Copy the full SHA 5bceef3View commit details -
Updates to remove scale by default in favour of opt in via prop
As discussed here #16113 (comment), there is little point in having thumbnail preview and large popover preview showing the same thing. Update to introduce a prop to opt in to scaling the preview. By default the preview is no auto-scaled. Apply `true` value to `BlockPreview` to ensure that Block Styles popover preview is scaled to fit.
Configuration menu - View commit details
-
Copy full SHA for 1f79935 - Browse repository at this point
Copy the full SHA 1f79935View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bec746 - Browse repository at this point
Copy the full SHA 1bec746View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdf16ad - Browse repository at this point
Copy the full SHA bdf16adView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5ba882 - Browse repository at this point
Copy the full SHA c5ba882View commit details -
Configuration menu - View commit details
-
Copy full SHA for a73b145 - Browse repository at this point
Copy the full SHA a73b145View commit details -
Configuration menu - View commit details
-
Copy full SHA for 320002d - Browse repository at this point
Copy the full SHA 320002dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dedae9 - Browse repository at this point
Copy the full SHA 0dedae9View commit details