From e7504c7e98e46d4693a0eb5cbd21e8b107bc777e Mon Sep 17 00:00:00 2001 From: MoeFurina Date: Fri, 13 Mar 2026 23:38:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E5=8C=85=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/public/index.html | 199 +++++++++++++++++++++++++++++------ 1 file changed, 167 insertions(+), 32 deletions(-) diff --git a/src/client/public/index.html b/src/client/public/index.html index aa7f7f4..02cbe7f 100644 --- a/src/client/public/index.html +++ b/src/client/public/index.html @@ -324,6 +324,94 @@ .clear-btn:active { transform: scale(0.98); } + + .modal-overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.5); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; + opacity: 0; + visibility: hidden; + transition: all 0.3s; + } + + .modal-overlay.show { + opacity: 1; + visibility: visible; + } + + .modal { + background: white; + border-radius: 8px; + padding: 24px; + min-width: 320px; + max-width: 400px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + transform: scale(0.95); + transition: transform 0.3s; + } + + .modal-overlay.show .modal { + transform: scale(1); + } + + .modal h3 { + margin: 0 0 12px 0; + font-size: 18px; + font-weight: 600; + color: var(--fg); + } + + .modal p { + margin: 0 0 20px 0; + font-size: 14px; + color: var(--muted); + line-height: 1.5; + } + + .modal-buttons { + display: flex; + gap: 10px; + justify-content: flex-end; + } + + .modal-btn { + padding: 8px 16px; + border: none; + border-radius: 4px; + font-size: 14px; + cursor: pointer; + transition: all 0.2s; + } + + .modal-btn-cancel { + background: #f5f5f5; + color: var(--fg); + border: 1px solid var(--border); + } + + .modal-btn-cancel:hover { + background: #e0e0e0; + } + + .modal-btn-confirm { + background: var(--accent); + color: white; + } + + .modal-btn-confirm:hover { + background: #a00a0a; + } + + .modal-btn:active { + transform: scale(0.98); + } @@ -371,6 +459,17 @@
已复制到剪贴板
+ +