-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix collapsing appender when paragraph disabled. #32894
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
Conversation
|
@youknowriad this could be a candidate for backporting. |
|
Size Change: +16 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
chrisvanpatten
left a comment
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.
Admittedly I had some build issues (on my side, unrelated to this PR) and was only able to test this by applying the style in-browser, but this definitely resolved the issue for me! Thanks for the quick patch @jasmussen!
fad593e to
0ba250e
Compare
Description
Fixes #32891, with context in #28219 (comment).
If you have the Paragraph block disabled, whether manually or through a custom post type, the plus button collapses to this:
The SVG has zero width:
This PR sets flex-shrink to zero, causing it to not collapse:
It would be nice to revisit this particular appender and offer a bigger one, such as what's seen in the group block. We might even revisit that appender component entirely and provide an ability to select it, like so:
But that's a bigger undertaking, and this being a very small change can serve as a hotfix.
How has this been tested?
Add a custom post type that disables the paragraph, or just disable the paragraph in your preferences:
Create a new empty post, and you should see a black plus button.
Checklist:
*.native.jsfiles for terms that need renaming or removal).