Skip to content

release-download-count - Avoid overlap - #9885

Merged
fregante merged 2 commits into
mainfrom
release-wrap
Jul 25, 2026
Merged

fregante merged 2 commits into
mainfrom
release-wrap

Conversation

@fregante

Copy link
Copy Markdown
Member

This component is cursed. So many inline classes. GitHub clips the sha. Fake columns. Crap by default.

Test URLs

https://github.com/notepad-plus-plus/notepad-plus-plus/releases

Screenshot

cursed

@github-actions github-actions Bot added the bug label Jul 25, 2026

// Avoid overflow/overlap
const row = closestElement('.Box-row', assetLink);
row.classList.add('flex-wrap');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wrap it up, bro

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This somewhat also improves the component altogether, unrelated to the "counts"

There's an open request to turn the feature into a more generic release-assets

// Hide sha on mobile. They have the classes but they're not correct (they hide in mid sizes, but show on smallest and largest)
hash?.classList.add('d-none', 'd-md-flex');
// Prevent sha from being clipped
hash?.style.setProperty('min-width', '100px');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just clip it like GitHub wants to

Comment thread source/refined-github.css
/* Test: https://github.com/hkint/xiaomi-ax3000t-immortalwrt-hanwckf-firmware-build/releases/tag/ImmortalWrt_2024.11.13-0026 */
.col-12.col-lg-6:has(.octicon-package + a[href*='/releases/download/']) {
width: 100%;
.Truncate-text.text-bold {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♂️

I think the flex-wrap did it.

@fregante
fregante enabled auto-merge (squash) July 25, 2026 17:28
@fregante
fregante merged commit e87a918 into main Jul 25, 2026
13 checks passed
@fregante
fregante deleted the release-wrap branch August 7, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

release-download-count causes overlap

1 participant