Is the block selection list too narrow for long block titles? #20006
Labels
[Feature] Inserter
The main way to insert blocks using the + button in the editing interface
Needs Design Feedback
Needs general design feedback.
[Package] i18n
/packages/i18n
[Type] Enhancement
A suggestion for improvement.
Describe the bug
I'm developing a new block which currently has a 40 character title (1st example - above the ruler).
When the block selection list is displayed it gets wrapped onto 2 lines.
It doesn't look right.
When the block name is longer ( 2nd and 3rd example ) part of the title isn't displayed.
Note: When the block name is longer the Block Manager can handle it.
The Block Manager expands as the block title gets longer.
The Block Inserter also displays the full title.
BTW. I'm using Chrome on Desktop here.
To reproduce
Steps to reproduce the behavior:
title:
attribute./startofthelongblocknameyouchose
Expected behavior
I don't know what should happen. That's why it's a question.
Whatever solution is proposed it should cater for translations,
which are often longer than the English.
eg. bloc de contenu pour les codes courts dynamiques.
Easy suggestion. Perhaps the documentation needs to be updated to recommend using a shortish title.
https://developer.wordpress.org/block-editor/developers/block-api/block-registration/
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Gutenberg 7.3.0
See also #1721
The text was updated successfully, but these errors were encountered: