Closed peterwilsoncc closed 1 month ago
I'm way out of my depth on the CSS here, I've muddled through some but it ultimately caused more visual breakage than I fixed. @ryelle I'll have to hand this off to you or @adamwoodnz
It looks like the overscroll is already an issue, just exacerbated by adding the extra text. It also happens just before the single-column breakpoint (~800px), so just removing the arrow won't work.
In https://github.com/WordPress/wporg-news-2021/pull/429/commits/9b3535e316aeb031d2c24392dc4871b796c2e91b, I've adjusted the font size so the longest text (the "Beta" version) is always within the viewport. I also updated the minimum breakpoint for showing the arrow to 1500px wide. All this also applies to the shorter text too, but I think overall that's okay.
960px | 1320px | 1500px |
---|---|---|
Thanks for the help, Kelly, it's very much appreciated. I've tested the CSS changes and they work as expected.
What
This modifies the home page of the news section, wordpress.org/news, to display the major version number for beta and release candidates. This changes the text from
BetaX
andRCX
toX.X BetaX
andX.X RCX
respectively.No change is made to the sidebar of the release listing.
(Please ignore the summary in the second after image, I copied over an old post)
Why
On the news home page, the headline is not specific when it contains only the type of pre-release without the major release version. On the release index the sidebar is fine as is as the major version is included on the right of the screen.
Broken
On the news home page, this introduces horizontal scrolling on narrow-ish displays.
I tried removing this block of code from the home page but it was still there so I'm leaving it as a project for y'all. The font size may need to be reduced slightly.
I've allowed edits by maintainers, so feel free to push to my branch at will.
https://github.com/WordPress/wporg-news-2021/blob/abc40e16ab22585570282ee4b352e830919affc6/source/wp-content/themes/wporg-news-2021/sass/page/front-page/_latest-release.scss#L96-L111