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
120vhelement 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