Gutenberg: long anchors make the list view take a lot of space #66300
Labels
Blocks
Editor blocks, aka Gutenberg blocks, plugins, and extensions
Customer Report
Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".
[Platform] Atomic
[Platform] Simple
[Pri] Low
Address when resources are available.
[Status] Core Fix Needed
A fix within the Core WordPress or Gutenberg project is required to resolve this issue.
Triaged
To be used when issues have been triaged.
[Type] Bug
When a feature is broken and / or not performing as intended
Quick summary
When adding long HTML anchors to a block in the Advanced settings, the list view in the editor takes more and more space on the screen.
Steps to reproduce
What you expected to happen
The width of the list view to stay the same
What actually happened
The list view gets bigger, and makes the editor too small
Context
5453488-zd-woothemes
Platform (Simple, Atomic, or both?)
Simple, Atomic
Theme-specific issue?
No response
Browser, operating system and other notes
Firefox 103 on macOS (Catalina) - doesn't look specific
Reproducibility
Consistent
Severity
All
Available workarounds?
No response
Workaround details
The issue seems to be coming from this backend CSS code:
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor {
max-width: min(100px,40%);
}
It can be replaced with this instead:
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor {
max-width: min(100px,40vw);
}
The text was updated successfully, but these errors were encountered: