Skip to content
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

List view: Horizontal scrollbar in site editor #65696

Open
jameskoster opened this issue Sep 27, 2024 · 3 comments
Open

List view: Horizontal scrollbar in site editor #65696

jameskoster opened this issue Sep 27, 2024 · 3 comments
Labels
[Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Type] Bug An existing feature does not function as intended

Comments

@jameskoster
Copy link
Contributor

scroll.mp4

Looks like it might be caused by template part blocks, but I'm not sure.

To replicate

  • Edit a page in the Site Editor
  • Ensure 'Show template' option is enabled
  • Switch to Design mode (if not already)
  • Open List view
  • Observe horizontal scrollbar
@jameskoster jameskoster added [Type] Bug An existing feature does not function as intended [Feature] List View Menu item in the top toolbar to select blocks from a list of links. labels Sep 27, 2024
@t-hamano
Copy link
Contributor

I have identified this issue as occurring in #65485.

When editing a page in the site editor, the ellipsis button is not displayed and the cell (.block-editor-list-view-block__menu-cell) width is 24px:

no-elipsis

If there is an ellipsis button, the cell width will be 28px, which is the expected width:

image

This 4px difference is what is causing the overflow.

This issue can be fixed with CSS, but I'm not sure if not displaying the ellipsis button in the first place is correct behavior.

Before #65485, it was displayed as follows:

image

cc @youknowriad

@t-hamano
Copy link
Contributor

#65485 will not ship in WP6.7, which means this issue should not occur in WP 6.7, so I will remove it from the project board.

@jameskoster
Copy link
Contributor Author

Thanks for the sleuthing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants