From b261d2750c4ea59e4b8c8d72c41e6ea16b21fa07 Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Tue, 17 Feb 2026 22:39:19 +0800 Subject: [PATCH] fix: unify share/direct link click and copy actions --- frontend/app.html | 84 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 65 insertions(+), 19 deletions(-) diff --git a/frontend/app.html b/frontend/app.html index a323c7d..e1cefaa 100644 --- a/frontend/app.html +++ b/frontend/app.html @@ -1575,6 +1575,33 @@ padding: 8px 12px; font-size: 13px; } + .share-card__url-link { + color: var(--accent-1); + word-break: break-all; + user-select: text; + cursor: text; + text-decoration: none; + } + .share-list-link-text { + color: #667eea; + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + user-select: text; + cursor: text; + } + .share-list-actions { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + flex-wrap: wrap; + } + .share-list-actions .btn { + padding: 6px 10px; + font-size: 12px; + } .share-toolbar { display: flex; gap: 10px; @@ -1720,6 +1747,14 @@ flex: 1; min-width: 108px; } + .share-list-actions { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + width: 100%; + } + .share-list-actions .btn { + width: 100%; + } .share-success-actions { flex-direction: column; } @@ -2971,7 +3006,7 @@
- {{ share.share_url }} + {{ share.share_url }}
访问 {{ share.view_count }} @@ -2997,19 +3032,19 @@ - + - - - - + + + + @@ -3018,9 +3053,17 @@ {{ formatExpireTime(share.expires_at) }} @@ -3047,18 +3090,18 @@
文件路径文件路径 分享链接访问次数下载次数到期时间操作访问次数下载次数到期时间操作
{{ share.share_path }} - {{ share.share_url }} + {{ share.view_count }} {{ share.download_count }} - +
- - + + - - + +
文件路径直链地址文件路径直链地址 下载到期时间操作到期时间操作
{{ link.file_path }} - {{ link.direct_url }} + {{ link.download_count || 0 }} @@ -3066,11 +3109,14 @@ {{ formatExpireTime(link.expires_at) }} -
- - +