-
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
Try to fix infinite growing block previews #51485
Conversation
Size Change: +135 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Flaky tests detected in e7f551b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5265282955
|
Nice, thanks for tackling this.
I would actually lean towards simply hard-cropping the pattern, and not showing any scrim or gradient. Keep it simple. |
That could look like a bug, but I don't think users gonna notice it 😆. @SaxonF WDYT? |
Closing as stale |
What?
See #50449 (comment). It's still only a draft PR for demonstration. Hopefully, when it's ready, it can fix #50449 and #43865. Related to #38181 (comment).
Why?
The growing block previews experience is a weird UX 😅 .
How?
There are no perfect solutions. We can't force every block preview to render it's full content inside a iframe, because it might have a
120vh
element that keeps pushing the height of the iframe.Instead, what this PR is trying to do is to render a "more content" indicator for previews that still keep growing after loaded.
The actual design is TBD and should be changed though 😅 . This PR is just a naive approach.
Testing Instructions
Screenshots or screencast