Skip to content

In Japanese environment, only two characters are displayed for the block name that appears when using select mode #21060

@ddryo

Description

@ddryo

In a Japanese environment, the component button that appears when using select mode displays only two characters.

To reproduce

  1. Set the language setting to Japanese.
  2. Use selection mode.
  3. Select any block.
  4. Then, the block name is displayed only for 2 characters.

Expected behavior
It should look like the following image.

wp54_expected

Screenshots
However, it now looks like the following image.

wp54_error

Solution
When "white-space: nowrap;" was applied to the component button (.edit-post-visual-editor .components-button), it became horizontal even in Japanese.

dev_tool

Verification environment

  • Mac OS
  • Google Chrome
  • WordPress 5.4-RC3-47477

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] BlocksOverall functionality of blocks[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions