Skip to content

fix(home): Explore the data's sentence breaks a word wider than its card at large text on a phone - #943

Merged
sickerine merged 2 commits into
mainfrom
fix/explore-reading-long-word
Nov 26, 2026
Merged

sickerine merged 2 commits into
mainfrom
fix/explore-reading-long-word

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Found by the daily QA of 26 November, checking #942.

Problem

A community home page's Explore the data sentence ("United States leads 52 countries, with 10 publications") is a large heading. At 200% text on a phone, "publications" alone is wider than its card, so the sentence ran past the card's edge and was cut: 46px at 390px, 76px at 360px, 116px at 320px. By country, By year and By type all did it.

Change

On a phone, Reading breaks a word wider than its line (max-sm:break-words). A word that fits never breaks, so normal text is as it was, and desktop doesn't change at all.

Checks

  • The same rule injected into Sources QA's live home page, Chromium and WebKit, By country, By year and By type, at 390 and 320 at 100%, 390, 360 and 320 at 200%, and 1440 at 100% and 200%: every cut sentence fits (0px past), and the sentences that weren't cut keep their lines.
  • npm run quality:fallow -- --base origin/main (pass), npm run check:ui-rules, eslint on the file.
  • Reviewed by GPT-6.1 Sol: one finding (the rule reached desktop too, through the curation and team statements that share Reading), fixed by scoping it to phones.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5bca5222-4d27-4f73-ae5c-32ad76b56465
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T09:29:05.624501Z 3ee1736 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sickerine
sickerine merged commit 82ae748 into main Nov 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant