From bcc51b17694542ce33fad3f4f8f416d00dbfac53 Mon Sep 17 00:00:00 2001 From: jingrow Date: Thu, 16 Oct 2025 23:15:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=8C=96AttachImage=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/core/components/form/controls/AttachImage.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/core/components/form/controls/AttachImage.vue b/frontend/src/core/components/form/controls/AttachImage.vue index 2b75499..b33135f 100644 --- a/frontend/src/core/components/form/controls/AttachImage.vue +++ b/frontend/src/core/components/form/controls/AttachImage.vue @@ -95,10 +95,11 @@ function clearValue() { .attach-line { display: flex; align-items: center; gap: 8px; position: relative; width: 100%; } .link-icon { opacity: .7; } .file-link-wrap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.file-link { color: #2563eb; text-decoration: underline; display: inline-block; } +.file-link { color: inherit; text-decoration: none; display: inline-block; } +.file-link:hover { text-decoration: underline; } .actions { margin-left: auto; display: inline-flex; gap: 12px; } -.action { background: none; border: none; padding: 0; color: #2563eb; cursor: pointer; font-size: 13px; } -.action:hover { text-decoration: underline; } +.action { background: transparent; border: none; padding: 2px 6px; color: inherit; cursor: pointer; font-size: 13px; border-radius: 6px; line-height: 1.4; } +.action:hover { text-decoration: underline; background: #f2f3f5; } .preview-popover { position: absolute; bottom: calc(100% + 8px); left: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 20; } .preview-popover img { width: 160px; height: 160px; object-fit: contain; border-radius: 8px; display: block; }