-
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
Try/even better previews #16873
Try/even better previews #16873
Commits on Aug 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for cdddad0 - Browse repository at this point
Copy the full SHA cdddad0View commit details -
Configuration menu - View commit details
-
Copy full SHA for af648b1 - Browse repository at this point
Copy the full SHA af648b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cc1264 - Browse repository at this point
Copy the full SHA 2cc1264View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ad0bc1 - Browse repository at this point
Copy the full SHA 3ad0bc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a15d94 - Browse repository at this point
Copy the full SHA 3a15d94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 167fadb - Browse repository at this point
Copy the full SHA 167fadbView commit details -
Use correct
createRef
from @wordpress/elementWas previously using React createRef. Addresses #16113 (comment)
Configuration menu - View commit details
-
Copy full SHA for 68fb82f - Browse repository at this point
Copy the full SHA 68fb82fView commit details -
Revert "Update class namespaces to match package"
This reverts commit 24252fa887986548839e7d9a6fe2639807ed0bc6.
Configuration menu - View commit details
-
Copy full SHA for 2ae0507 - Browse repository at this point
Copy the full SHA 2ae0507View commit details -
Configuration menu - View commit details
-
Copy full SHA for a920ee5 - Browse repository at this point
Copy the full SHA a920ee5View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc8738f - Browse repository at this point
Copy the full SHA dc8738fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f4f105 - Browse repository at this point
Copy the full SHA 0f4f105View 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 62e1109 - Browse repository at this point
Copy the full SHA 62e1109View commit details -
Configuration menu - View commit details
-
Copy full SHA for e822ae7 - Browse repository at this point
Copy the full SHA e822ae7View 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 04648b4 - Browse repository at this point
Copy the full SHA 04648b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6f6e38 - Browse repository at this point
Copy the full SHA a6f6e38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f5c06f - Browse repository at this point
Copy the full SHA 6f5c06fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff88234 - Browse repository at this point
Copy the full SHA ff88234View 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 770ff2d - Browse repository at this point
Copy the full SHA 770ff2dView 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 a55e988 - Browse repository at this point
Copy the full SHA a55e988View 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 7755b5b - Browse repository at this point
Copy the full SHA 7755b5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94b6e3d - Browse repository at this point
Copy the full SHA 94b6e3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cffd2e8 - Browse repository at this point
Copy the full SHA cffd2e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 550f99e - Browse repository at this point
Copy the full SHA 550f99eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5c7079 - Browse repository at this point
Copy the full SHA c5c7079View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1489148 - Browse repository at this point
Copy the full SHA 1489148View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5649e51 - Browse repository at this point
Copy the full SHA 5649e51View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4d3843 - Browse repository at this point
Copy the full SHA c4d3843View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bb1a30 - Browse repository at this point
Copy the full SHA 0bb1a30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d77381 - Browse repository at this point
Copy the full SHA 8d77381View commit details -
Dynamically calculate widths and offsets of preview container
Removes hardcoded values.
Configuration menu - View commit details
-
Copy full SHA for 4def132 - Browse repository at this point
Copy the full SHA 4def132View commit details -
Updates to account for widths of all Blocks passed into to preview
Preivously we only considered a single Block scenario. However, the recent addition of multi block support for Previews means we need to ensure we’re measuring the widths of _all_ Blocks.
Configuration menu - View commit details
-
Copy full SHA for ea1d096 - Browse repository at this point
Copy the full SHA ea1d096View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02e69f5 - Browse repository at this point
Copy the full SHA 02e69f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52084af - Browse repository at this point
Copy the full SHA 52084afView commit details -
Update packages/block-editor/src/components/block-preview/index.js
Co-Authored-By: Riad Benguella <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d0a85d - Browse repository at this point
Copy the full SHA 6d0a85dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed1f99 - Browse repository at this point
Copy the full SHA 3ed1f99View commit details -
Fix to ensure smallest Block is found even if smaller than container
Preivously we were default to the container width being the largest item. In fact we always want to determine the largest Block contents element and use that to determine the scale.
Configuration menu - View commit details
-
Copy full SHA for 7c86742 - Browse repository at this point
Copy the full SHA 7c86742View commit details -
Configuration menu - View commit details
-
Copy full SHA for efa2127 - Browse repository at this point
Copy the full SHA efa2127View commit details -
Configuration menu - View commit details
-
Copy full SHA for 595cf03 - Browse repository at this point
Copy the full SHA 595cf03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6941688 - Browse repository at this point
Copy the full SHA 6941688View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7e7b4a - Browse repository at this point
Copy the full SHA d7e7b4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a7c6d9 - Browse repository at this point
Copy the full SHA 6a7c6d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fab9b2 - Browse repository at this point
Copy the full SHA 0fab9b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f0d6b8 - Browse repository at this point
Copy the full SHA 0f0d6b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d11b6ab - Browse repository at this point
Copy the full SHA d11b6abView commit details -
Configuration menu - View commit details
-
Copy full SHA for d39c1d7 - Browse repository at this point
Copy the full SHA d39c1d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55cd662 - Browse repository at this point
Copy the full SHA 55cd662View commit details -
Configuration menu - View commit details
-
Copy full SHA for b942fb9 - Browse repository at this point
Copy the full SHA b942fb9View commit details
Commits on Aug 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0ab14f8 - Browse repository at this point
Copy the full SHA 0ab14f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c86f750 - Browse repository at this point
Copy the full SHA c86f750View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18ded7d - Browse repository at this point
Copy the full SHA 18ded7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b7de16 - Browse repository at this point
Copy the full SHA 0b7de16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 354d42c - Browse repository at this point
Copy the full SHA 354d42cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d70011f - Browse repository at this point
Copy the full SHA d70011fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6089478 - Browse repository at this point
Copy the full SHA 6089478View commit details
Commits on Aug 6, 2019
-
Configuration menu - View commit details
-
Copy full SHA for dbbe0bc - Browse repository at this point
Copy the full SHA dbbe0bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 758468c - Browse repository at this point
Copy the full SHA 758468cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b71c32 - Browse repository at this point
Copy the full SHA 2b71c32View commit details -
Make previews overflow to the bottom.
Currently still has a bug where the large `.block-editor-block-switcher__preview` pane behaves like it's previewing a taller block, when it's not
Configuration menu - View commit details
-
Copy full SHA for 65097d0 - Browse repository at this point
Copy the full SHA 65097d0View commit details -
Merge branch 'try/even-better-previews' of https://github.com/WordPre…
…ss/gutenberg into try/even-better-previews
Configuration menu - View commit details
-
Copy full SHA for 8bdcb8e - Browse repository at this point
Copy the full SHA 8bdcb8eView commit details -
Revert "core/button: set nowrap onlu for button"
It breaks previews of long buttons This reverts commit 758468c.
Configuration menu - View commit details
-
Copy full SHA for 6096c3e - Browse repository at this point
Copy the full SHA 6096c3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1b9483 - Browse repository at this point
Copy the full SHA e1b9483View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75d43ce - Browse repository at this point
Copy the full SHA 75d43ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89f6393 - Browse repository at this point
Copy the full SHA 89f6393View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a1e5ad - Browse repository at this point
Copy the full SHA 5a1e5adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d47db8 - Browse repository at this point
Copy the full SHA 3d47db8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27b430f - Browse repository at this point
Copy the full SHA 27b430fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d21df0b - Browse repository at this point
Copy the full SHA d21df0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d8212f2 - Browse repository at this point
Copy the full SHA d8212f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b1a111 - Browse repository at this point
Copy the full SHA 2b1a111View commit details -
Configuration menu - View commit details
-
Copy full SHA for e50cfcb - Browse repository at this point
Copy the full SHA e50cfcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5208a03 - Browse repository at this point
Copy the full SHA 5208a03View commit details
Commits on Aug 7, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 029e131 - Browse repository at this point
Copy the full SHA 029e131View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72c5027 - Browse repository at this point
Copy the full SHA 72c5027View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4958f3 - Browse repository at this point
Copy the full SHA a4958f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22b4d84 - Browse repository at this point
Copy the full SHA 22b4d84View commit details -
Configuration menu - View commit details
-
Copy full SHA for f218f64 - Browse repository at this point
Copy the full SHA f218f64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 835c4ba - Browse repository at this point
Copy the full SHA 835c4baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fe45d7 - Browse repository at this point
Copy the full SHA 3fe45d7View commit details -
We'll revisit when we have a better idea what specifically we should be testing
Configuration menu - View commit details
-
Copy full SHA for 91f142f - Browse repository at this point
Copy the full SHA 91f142fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33fb2d9 - Browse repository at this point
Copy the full SHA 33fb2d9View commit details -
Merge branch 'try/even-better-previews' of github.com:WordPress/guten…
…berg into try/even-better-previews
Configuration menu - View commit details
-
Copy full SHA for 527111e - Browse repository at this point
Copy the full SHA 527111eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f29c27 - Browse repository at this point
Copy the full SHA 6f29c27View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3bb473 - Browse repository at this point
Copy the full SHA a3bb473View commit details