Skip to content

Conversation

@Rishit30G
Copy link
Contributor

@Rishit30G Rishit30G commented Mar 17, 2025

What?

Closes #69588

Why?

This PR is necessary to avoid the overflow of text happening in post excerpt

How?

This PR adds the word-break: break-word and hyphens: auto to avoid the overflow of post excerpt

Testing Instructions

  • Create a new post
  • Add a title to the post and some long words in the editor like LoremIpsumLoremIpsumLoremIpsum
  • Save the post
  • Create a new post
  • Add a Query Block to it with 3 column layout
  • Save the post and notice on the frontend that the text overflow is no more

Screenshots or screencast

Before After
https://github.com/user-attachments/assets/b2f9b308-9354-443f-b808-ee120b1c1ec8 https://github.com/user-attachments/assets/d4bd0a79-92d8-4fe0-a514-7ab718321e74

@github-actions
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.

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

Co-authored-by: Rishit30G <rishit30g@git.wordpress.org>

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

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Post Excerpt Affects the Post Excerpt Block labels Mar 18, 2025
@t-hamano t-hamano self-requested a review April 9, 2025 02:48
Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

I'm not sure that adding some styles to a specific block is an ideal approach. Let's take a broader perspective and discuss the ideal solution first. See #69588 (comment)

@t-hamano
Copy link
Contributor

Closing this PR to investigate the ideal solution on #11956

@t-hamano t-hamano closed this Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Post Excerpt Affects the Post Excerpt Block [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Post excerpt overflows in 3 column layout of query loop

2 participants