Skip to content
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

Fix: Post excerpt overflows in 3 column layout of query loop #69589

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

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

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 <[email protected]>

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
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