From 444167e7935832129b6cac3bb7e78c10c760c5e8 Mon Sep 17 00:00:00 2001 From: "yinjun.chen1" Date: Wed, 16 Sep 2026 17:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=EF=BC=8C=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _locales/en/messages.json | 2 +- _locales/zh_CN/messages.json | 2 +- popup.css | 30 +++++++++++++++++++++++++++--- popup.html | 6 ++++-- popup.js | 18 ++++++++++++------ 5 files changed, 45 insertions(+), 13 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index d2106a8..fb93bd8 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -300,7 +300,7 @@ "description": "Close button" }, "createEnvBtn": { - "message": "+ New Environment", + "message": "New Environment", "description": "Create env button" }, "envManageEmpty": { diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index aaa85d3..3b70ad0 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -300,7 +300,7 @@ "description": "关闭按钮" }, "createEnvBtn": { - "message": "+ 新建环境", + "message": "新建环境", "description": "新建环境按钮" }, "envManageEmpty": { diff --git a/popup.css b/popup.css index 7c83a95..92ad2eb 100644 --- a/popup.css +++ b/popup.css @@ -981,6 +981,30 @@ h2 { width: 100%; max-width: 360px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); + position: relative; +} + +.modal-close { + position: absolute; + top: 8px; + right: 10px; + background: none; + border: none; + color: #888; + font-size: 18px; + cursor: pointer; + line-height: 1; + padding: 2px 6px; + border-radius: 4px; +} + +.modal-close:hover { + color: #e94560; + background: rgba(233, 69, 96, 0.1); +} + +.btn-block { + width: 100%; } .modal-content h3 { @@ -1100,12 +1124,12 @@ h2 { .env-manage-actions { display: flex; - gap: 6px; + gap: 2px; + margin-right: -8px; } .env-manage-actions button { - padding: 4px 10px; - font-size: 12px; + padding: 4px 6px; } .env-manage-empty { diff --git a/popup.html b/popup.html index 002da6d..66b5876 100644 --- a/popup.html +++ b/popup.html @@ -166,18 +166,19 @@