Fix post list title column being squeezed by Stats column width#4105
Fix post list title column being squeezed by Stats column width#4105m wants to merge 2 commits intoParsely:developfrom
Conversation
The Parse.ly Stats column sets width: 200px, which is far too wide for its short numeric content. On sites with additional plugin columns (e.g. Jetpack Stats), this squeezes the Title column to ~50px, making post titles unreadable. - Change Parse.ly column from 200px to 6% (~69px), removing the 991px media query since 6% scales naturally - Reduce Categories and Tags from core's 15% to 10%, as these columns typically show short content and 15% is disproportionate when plugin columns are present Tested on WordPress 7.1-alpha trunk with Jetpack Stats active. Title column recovers from ~50px to ~292px. No horizontal scrollbar.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (3)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughModified styling in the post-list-stats component by replacing fixed pixel widths with percentage-based widths for column elements. Converted Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Hi @m, thank you for your contribution. As a first step, I've rebuilt the project's assets (this is pushed to your branch). I will be testing this momentarily and let you know of any feedback. Thanks! |
|
Closing this in favor of #4136, which replaces the metric strings with icons, and brings some additional improvements. Any feedback welcome, and the plan is to release this on Monday. |




Problem
The Parse.ly Stats (7d) column sets
width: 200px, which is far too wide for the short numeric content it displays (a view count or "—"). On sites with additional plugin columns (e.g. Jetpack Stats), WordPress core'stable-layout: fixedsqueezes the Title column — the only column without an explicit width — to as little as ~50px, making post titles unreadable.Fix
200pxto6%(~69px at typical viewport), which is more than enough for its short content and scales naturally (removing the need for the991pxmedia query override).15%for Categories and Tags to10%— these columns typically show short content and15%is disproportionate when plugin columns are present.Results
No horizontal scrollbar. Tested on WordPress 7.1-alpha (trunk) with Jetpack Stats column active, verified at multiple viewport widths.
Summary by CodeRabbit