-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Editor: Hide the block appender in the Template Part editor #37213
Conversation
Size Change: +18 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
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.
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.
LGTM 👍 , just a small question.
@@ -124,6 +124,7 @@ export default function BlockEditor( { setIsInserterOpen } ) { | |||
<BlockList | |||
className="edit-site-block-editor__block-list wp-site-blocks" | |||
__experimentalLayout={ LAYOUT } | |||
renderAppender={ isTemplatePart ? false : undefined } |
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.
Should we still render the appender if the template is empty? As stated in the original issue's title.
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.
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.
Yeah the paragraph appender will still appear. Agree it could use some love 🙂
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 we can address that as a part of #28737, and this probably elevates the importance of looking in to that issue for 6.0.
This may be a separate issue but I noticed the height value applied to the canvas isn't being calculated correctly, and I see a scrollbar: scroll.mp4For reference, the body tag on my theme has a border, it seems this isn't factored in to the height calculation. |
@jameskoster: I might just link to your comment in #36141. Looks like there's a few weird things to do with canvas height we need to investigate. |
I wonder why this is only limited to template parts, it feels we can do so for the all the site editor maybe? Is there any discussion about this? |
@youknowriad There has been a lot of scattered discussion about the various inserters and I think the consensus is that we should remove this particular one in the Site Editor as well. Focus mode was prioritised though as that experience is more egregious. |
Description
Closes #36827.
Just a simple PR that hides the block appender in the Template Part editor.
I confirmed that the background colour of the Template Part editor is taken from Global Styles, so no action is required there.
On tall viewports, the height of the editor is greater than the height of the content which means there's a large bit of whitespace at the bottom. This is tracked separately in #36141.
How has this been tested?
Screenshots
Checklist:
*.native.js
files for terms that need renaming or removal).