Skip to content

Block Editor: Remove truncation from media tab preview tooltips #69741

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

Conversation

Sukhendu2002
Copy link
Contributor

@Sukhendu2002 Sukhendu2002 commented Mar 28, 2025

What?

Closes: #69729

This PR removes the 25-character truncation from block-inserter media tab item preview tooltips, making them consistent with Pattern previews.

Testing Instructions

  • Added media items with long titles to the media library
  • Opened the block inserter and navigated to the media tab
  • Verified that tooltips now show the complete title without truncation when hovering over media items

Screenshots or screencast

Before After
Screenshot 2025-03-28 at 4 03 52 PM Screenshot 2025-03-28 at 4 01 04 PM

@Sukhendu2002 Sukhendu2002 marked this pull request as ready for review March 28, 2025 10:40
@Sukhendu2002 Sukhendu2002 requested a review from ellatrix as a code owner March 28, 2025 10:40
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @claimableperch.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: claimableperch.

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Sukhendu2002
Copy link
Contributor Author

Hey @Mamaduka! PR is now ready for review. Feel free to take a look whenever you have some time. Thanks!

@Mamaduka Mamaduka added [Type] Enhancement A suggestion for improvement. [Feature] Inserter The main way to insert blocks using the + button in the editing interface labels Mar 28, 2025
Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Sukhendu2002!

@Mamaduka Mamaduka merged commit cd69417 into WordPress:trunk Mar 28, 2025
67 of 69 checks passed
@github-actions github-actions bot added this to the Gutenberg 20.7 milestone Mar 28, 2025
@Mamaduka Mamaduka added the Backport to WP Minor Release Pull request that needs to be backported to a WordPress minor release label Apr 8, 2025
@t-hamano
Copy link
Contributor

I am checking the PRs with the "Backport to WP Minor Release" label applied to clarify which PRs should be backported to the WordPress 6.8.2 release.

This PR doesn't fix the issue that first appeared in 6.8; it's just a small improvement to make the media tooltip text fully visible.

I think it's safe to include it in the 6.8.2 release candidate, but what do you think?

@Mamaduka
Copy link
Member

It's a minor fix and a good candidate for 6.8.2.

t-hamano added a commit that referenced this pull request Jun 30, 2025
Unlinked contributors: claimableperch.

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
chriszarate pushed a commit to chriszarate/gutenberg that referenced this pull request Jul 1, 2025
…Press#69741)

Unlinked contributors: claimableperch.

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Mamaduka added a commit that referenced this pull request Jul 8, 2025
Unlinked contributors: claimableperch.

Co-authored-by: Sukhendu2002 <sukhendu2002@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
@t-hamano
Copy link
Contributor

t-hamano commented Jul 8, 2025

This PR was cherry-picked into the wp/6.8 branch for the WP 6.8.2 release: #70557

@t-hamano t-hamano removed the Backport to WP Minor Release Pull request that needs to be backported to a WordPress minor release label Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block-inserter panel media-tab preview-of-item tooltips' truncation could be configurable.
3 participants