Skip to content

Commit de372f6

Browse files
committed
fix: mobile do not display downloads if build-only
1 parent c71c327 commit de372f6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

www/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ html {
2525
display: none !important;
2626
}
2727

28-
#downloads2 {
28+
#downloads2:not(.hide) {
2929
display: block !important;
3030
}
3131
}

www/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,13 +627,16 @@ function updateImages(version, mobj) {
627627
h3.classList.remove("tr-downloads");
628628
h3.classList.add("tr-custom-downloads");
629629
show('#downloads1')
630+
show('#downloads2')
630631
} else {
631632
h3.classList.remove("tr-custom-downloads");
632633
h3.classList.add("tr-downloads");
633634
if (config.versions_info[version]?.build_only) {
634635
hide("#downloads1");
636+
hide("#downloads2");
635637
} else {
636638
show('#downloads1')
639+
show('#downloads2')
637640
}
638641
}
639642

0 commit comments

Comments
 (0)