Repository navigation
release-download-count - Avoid overlap - #9885
Merged
Merged
Conversation
fregante
commented
Jul 25, 2026
|
|
||
| // Avoid overflow/overlap | ||
| const row = closestElement('.Box-row', assetLink); | ||
| row.classList.add('flex-wrap'); |
Member
Author
There was a problem hiding this comment.
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'); |
Member
Author
There was a problem hiding this comment.
Just clip it like GitHub wants to
| /* 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 { |
Member
Author
There was a problem hiding this comment.
🤷♂️
I think the flex-wrap did it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
release-download-countcauses overlap #9814This 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