-
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
Disallow scrolling the block preview. #63558
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: 0 B Total Size: 1.75 MB ℹ️ View Unchanged
|
Flaky tests detected in ce522bb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9938829628
|
We need to add a viewport width so that columns actually display side by side. |
Good catch on the cropped pieces, however that preview was never meant to be scrollable, just like it isn't in the flyout preview either. It's a small glimpse at the content, but height-limited to not push down important inspector content substantially. Mont Blanc has served us well, but it could be time to find something better. Perhaps we can find something more landscape shaped, so the caption is visible. To that end, I see this more as a forcing function to improve our previews: the content, etc., than anything else. It's also an issue when you change the styling: That said, and as is visible in this GIF too, I just discovered another issue 🙈—if you scale up the text in a paragraph, then scale it back down, the text stays pushed downwards. I'm about to head AFK for a couple of weeks. Outside of an approval of this one so we can land it, others should feel free to push to this branch (i.e. if a quick viewport width improves the image, seems fine). Otherwise I'll pick it back up when I return. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the previews shortcomings shouldn't block this PR, we can make a pass at improving them separately, like Rich mentions for the columns block
I'm going to have a look at the problem with the text being pushed cause I think I know why it is, I'll add to this PR |
What?
The block preview is scrollable (related, #45719):
This PR makes it not scrollable:
Why?
The content is inert, not meant to be interacted with.
Testing Instructions
Go to site editor > global styles. Go to blocks, select a block such as paragraph. The preview here should not be scrollable.