Skip to content

Commit 1129456

Browse files
committed
优化 Release 文件名较长时的显示效果
1 parent 8c2614b commit 1129456

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

GithubEnhanced-High-Speed-Download.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN Github 增强 - 高速下载
44
// @name:zh-TW Github 增強 - 高速下載
55
// @name:ru Улучшение GitHub – быстрое скачивание
6-
// @version 2.6.24
6+
// @version 2.6.25
77
// @author X.I.U
88
// @description High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁)
99
// @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)
@@ -295,6 +295,7 @@
295295
let html = document.querySelectorAll('.Box-footer'); if (html.length == 0 || location.pathname.indexOf('/releases') == -1) return
296296
let divDisplay = 'margin-left: -90px;', new_download_url = get_New_download_url();
297297
if (document.documentElement.clientWidth > 755) {divDisplay = 'margin-top: -3px;margin-left: 8px;display: inherit;';}; // 调整小屏幕时的样式
298+
html[0].appendChild(document.createElement('style')).textContent = '@media (min-width: 768px) {.Box-footer li.Box-row>div>span.color-fg-muted {min-width: 27px !important;}}';
298299
for (const current of html) {
299300
if (current.querySelector('.XIU2-RS')) continue
300301
current.querySelectorAll('li.Box-row a').forEach(function (_this) {

0 commit comments

Comments
 (0)