Automattic / Automattic/jetpack

Better JITM text wrapping at certain window sizes

Open
#29,049 3 comments 0 reactions 0 assignees View on GitHub
[Feature] JITM [Package] Jitm [Pri] Low Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### What's happening?

At certain window sizes, JITM text can include widows that look unpolished. This can be solved by adding a   between the last two words of the description:

Ex: March 2023 → March 2023

![Image](https://user-images.githubusercontent.com/7129409/220125500-7081c67f-c5d3-4a13-9f82-26ad14afe49c.png)

### What did you expect?

(Replace this text with what you think should happen, as opposed to what actually happened.)

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named in the issue. Find the JITM description rendering entry point, reproduce the widow at the affected window sizes, and verify that the last two words stay together without disrupting other text wrapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.