Skip to content

Abilities Explorer: Descriptions are excessively trimmed depending on the language #588

Closed

Description

@t-hamano

What problem does this address?

On the Abilities Explorer list page, each ability description is limited to 20 characters or 20 words. While 20 words is a sufficient length in English, 20 characters is not enough in Japanese, causing descriptions to be excessively truncated and making it difficult to infer the intended meaning of the ability.

Enblish Japanese
Image Image

What is your proposed solution?

I suggest using CSS's line-clamp to visually trim only the overflowing parts.

Recording.2026-05-20.112317.mp4

Activity

  1. added
    [Type] Enhancement
    on May 20, 2026
  2. changed the title [-]Abilities EXplorer: Descriptions are excessively trimmed depending on the language[/-] [+]Abilities Explorer: Descriptions are excessively trimmed depending on the language[/+] on May 20, 2026
  3. hbhalodia commented on May 20, 2026

    @hbhalodia
    Contributor

    Hi @t-hamano,

    A question, what could the overflowing in this case would be to consider? Because,

    Current abilities in english when viewed with 20 words still goes to next line and has … at the end. (trimmed and next line as well).

    Image

    Instead, I would say to use wp_trim_words with the default value, and that function itself is localized, it will use characters to make trim. So for English it would use 55 words and for character langauges it may use 55 characters?

    If we are intending to only show a single line in description, then we can add the line clamp using CSS. Currently the overflowing is not consistent.

    IMO, we should only show the single line description, else trimming the description is not beneficial, or should show the entire description then. WDYT?

  4. moved this from Triage to In progress in WordPress AI Roadmapon May 20, 2026
  5. hbhalodia commented on May 20, 2026

    @hbhalodia
    Contributor
    • Raised the draft PR in case we go ahead with line-clamp CSS rule. Happy to update if we go with another approach.

    Thanks,

  6. t-hamano commented on May 21, 2026

    @t-hamano
    ContributorAuthor

    IMO, we should only show the single line description, else trimming the description is not beneficial, or should show the entire description then. WDYT?

    Alternatively, we could consider removing this description entirely, as the full details are available on the Ability detail page. I don't have a strong preference either way.

  7. added this to the 1.1.0 milestone on May 21, 2026
  8. added theissue type on May 21, 2026
  9. added
    [Type] Bug
    and removed
    [Type] Enhancement
    on May 21, 2026
  10. hbhalodia commented on May 22, 2026

    @hbhalodia
    Contributor

    Thanks @t-hamano for the input. I will remove the description entirely, Since the full details are available on Ability detail page.

    Cc: @jeffpaul @dkotter

  11. hbhalodia commented on May 22, 2026

    @hbhalodia
    Contributor

    Have made the PR ready to review as per the comment to remove the description. Also updated PR description to add the details.

    Thanks,

  12. moved this from In progress to Needs review in WordPress AI Roadmapon May 26, 2026
  13. jeffpaul commented on May 26, 2026

    @jeffpaul
    Member

    Alternatively instead of removing these outright, they could be exposed on screen options with the descriptions disabled/hidden by default? That way if someone wanted them, they could enable them to render on the screen? Not a strong opinion to actually do this, just that its an alternate handling.

  14. moved this from Needs review to Done in WordPress AI Roadmapon May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Type] Bug

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions