-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block preview - server-side rendered block previews not vertically centered #18134
Comments
Assuming Could we create a custom
I did add this to the WP 5.3 must have only because I think since block previews are likely to be utilized extensively once WP 5.3 ships, it's a pretty glaring issue that would be good to address. However, I realize that some of my suggestions for fixing this are probably outside the scope of adding to WP 5.3 at this stage of things (I'm not sure how we can fix otherwise though... unless implementors simply avoid rendering via SSR for previews and simply implement static previews for now?). |
Hi @mikejolley @nerrad @talldan - I've been trying to determine whether if this is still an issue, but so far I haven't been able to replicate. These are the steps I used:
This is what I see: Tested with: WordPress 6.0.1 If this is no longer an issue, or if there are other steps needed to replicate, please let me know! |
I'm going to go ahead and close this out, but if you are still experiencing the original issue, feel free to add a comment with additional details and I’ll be glad to reopen it. |
Describe the bug
During implementation of some previews for SSR blocks, I noticed that when the rendered block content is longer than the initial loading state, the vertical alignment (which appears calculated) is not re-calculated. This gives something like this:
You can see the alignment is based on the loading state:
To reproduce
Our code is here woocommerce/woocommerce-blocks#1064
I think it can be replicated with an SSR block which renders long content.
Expected behavior
Once the SSR block is finished rendering, vertical alignment should be re-calculated, and any long content cut off in the preview.
cc @nerrad
The text was updated successfully, but these errors were encountered: