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

Gutenberg: long anchors make the list view take a lot of space #66300

Closed
mxhassani opened this issue Aug 5, 2022 · 5 comments
Closed

Gutenberg: long anchors make the list view take a lot of space #66300

mxhassani opened this issue Aug 5, 2022 · 5 comments
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

Comments

@mxhassani
Copy link

mxhassani commented Aug 5, 2022

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

  1. Add a block
  2. Open the list view
  3. Go to block settings > Advanced > HTML anchor
  4. Add a long anchor text
  5. Notice the width of the list view getting bigger

What you expected to happen

The width of the list view to stay the same
Uploading image.png…

What actually happened

The list view gets bigger, and makes the editor too small
image

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);
}

@mxhassani mxhassani added [Type] Bug When a feature is broken and / or not performing as intended User Report labels Aug 5, 2022
@github-actions
Copy link

github-actions bot commented Aug 5, 2022

Support References

This comment is automatically generated. Please do not edit it.

  • 5453488-zen

@KirkwallDay
Copy link

KirkwallDay commented Aug 10, 2022

  • Another instance here: 36387662-hc

@renata-franco renata-franco added [Pri] Low Address when resources are available. Triaged To be used when issues have been triaged. Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions labels Aug 10, 2022
@renata-franco
Copy link

📌 SCRUBBING

  • Tested on Simple ✅
  • Tested on AT ✅
  • Tested on Self-hosted ✅
  • Replicable on Core - Yes

📌 FINDINGS/SCREENSHOTS/VIDEO

I was able to replicate it on Simple, AT, and self-hosted sites.

Simple:

imagen

AT site:

imagen

Self-Hosted:

imagen

Here is a video of what it looks like:

CleanShot.2022-08-10.at.17.18.35.mp4

📌 ACTIONS

  • Marked as Triaged for Quality Squad review

@Robertght
Copy link

Looks like it's gonna be fixed in the 14.0 release: WordPress/gutenberg#43134

@youbrokesomething youbrokesomething added the [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. label Sep 29, 2022
@mrfoxtalbot mrfoxtalbot moved this to To triage in Dotcom Core Fix Needed Sep 2, 2024
@annezazu
Copy link

annezazu commented Sep 9, 2024

Closing out as this has been fixed :) WordPress/gutenberg#43134

@annezazu annezazu closed this as completed Sep 9, 2024
@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

6 participants