-
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
Editing Navigation shows small sub menu area #66582
Comments
Thanks for the report. You're probably inserting a Navigation block inside a pattern, right? Here's a video showing the steps I took to reproduce it: 048a25929bdcdf71617879d9d068ee43.mp4Pattern editors, i.e. resizable editors, change height depending on their content. But navigation menus can have absolutely positioned submenus, which I think is not taken into account when determining the editor height. I definitely think the current editing UX is not ideal. |
Thank you for making the video Aki. It is very appreciated!
Yes. I was editing the header pattern (see header title) and noticed the problem with editing the submenu. |
@t-hamano and @getdave I see that @rohitmathur-7 has made a PR here: Personally I believe it would be better to make the whole editing experience bigger. As currently it is very small and expending it to become a larger editing experience would help. Using much more of the screen canvas space. |
I'm not sure if going ahead with #66788 is ideal. #66788 changes the canvas to full height when a Navigation block is present on the canvas, but this issue can occur with more than just the Navigation block. Block developers may have custom blocks with absolutely positioned elements or blocks. The best approach I can imagine would be to determine the canvas height based on the visually displayed blocks, but I'm not sure if this is easily achievable. |
@t-hamano As you know we had the work to place the block toolbar in the correct location. However that relies on the elements being active/visible in the DOM. Having the canvas height dynamically calculated based on a potential element becoming visible is going to be extremely challenging/impossible. I guess you are thinking along the same lines? When we had a dedicated Navigation editor it used to force the canvas to full height. However, in that scenario we could guarantee we'd have only the Navigation block. Patterns are deliberately made smaller height canvas. I think we need some wider input here to help determine if there's a compromise to be had. |
@paaljoachim This seems related to #49339. If it's the same Issue could we/you close this one out in favour of that one? |
Of course. Closing this issue. |
Description
I am seeing very little of the submenu and need to scroll.
Associated issue: #65195
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
.
Environment info
WordPress 6.6.2
Gutenberg plugin: 19.5.0
WooCommerce plugin: 9.3.3
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: