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

[ Latest posts ] Post content overflows block space when first word is very long #15721

Closed
arunsathiya opened this issue May 19, 2019 · 2 comments
Labels
[Block] Latest Posts Affects the Latest Posts Block [Type] Enhancement A suggestion for improvement.

Comments

@arunsathiya
Copy link
Contributor

Describe the bug

The Latest posts block has a new feature (#14627 and #15453) to show post content. In the Excerpt mode, if the first word is very long, it overflows the available block space.

Steps to reproduce

  • Start with Gutenberg 5.7.0-rc-1. It's available here.
  • Add the Latest posts block.
  • On the block settings, enable the option to show post content.
  • Choose Excerpt mode and limit to a certain number of words. Say, 10.
  • Publish the post/page.
  • Create another post with the first being very long. Example word that you can use:

testttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt

What is expected

The content is within the block, and does not overflow.

What happens instead

The content overflows the available block space.

Screenshot 2019-05-19 at 14 22 56

Notes

This is because the block settings limits the content to "10 words". One solution to this would be to modify the setting to "number of characters" instead of "words".

This happens for the long first word in a column block as well.

Screenshot 2019-05-19 at 14 25 57

Gutenberg, browser and device version:

I am using Gutenberg 5.7.0-rc-1 on a Pressable site, with Google Chrome Version 74.0.3729.131 (Official Build) (64-bit) on macOS 10.14.4 - Mac OS Mojave.

Related issues: #15719

@youknowriad youknowriad added [Block] Latest Posts Affects the Latest Posts Block [Type] Enhancement A suggestion for improvement. labels May 21, 2019
@draganescu draganescu changed the title Latest posts block: Post content overflows block space when first word is very long [ Latest posts ] Post content overflows block space when first word is very long Mar 2, 2020
@draganescu
Copy link
Contributor

Howdy @arunsathiya, wouldn't this be solvable by themes? It feels very little useful to have char length for excerpts instead of word length, and having both options seems to much.

@paaljoachim
Copy link
Contributor

Hey

I just closed my own issue that is somewhat related.
I did a new test for this issue.

Using Gutenberg version 9.8
Twenty Twenty One.
Chrome
WordPress 5.6

  1. Made the first word very long in a post.
  2. Added the Latest Post block in a page.
  3. Made excerpt show 10 words.
  4. Made another post where the first word was also very long.

The result:

Backend:
Screen Shot 2021-01-22 at 12 15 30

Frontend:
Screen Shot 2021-01-22 at 12 16 02

I will go ahead and close this issue. If I am mistaken then please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants