From 998da06c9a8359be4f7f2ad58237df5072f1c447 Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:45:32 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E9=83=A8=E7=BD=B2=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/upy.yml | 2 +- themes/Ying/assets/js/modules/utils.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upy.yml b/.github/workflows/upy.yml index 1fe67b31..8ea40f8d 100644 --- a/.github/workflows/upy.yml +++ b/.github/workflows/upy.yml @@ -35,7 +35,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: '18' + node-version: '22' - name: Install Node.js dependencies run: npm install diff --git a/themes/Ying/assets/js/modules/utils.js b/themes/Ying/assets/js/modules/utils.js index dd37218f..a73926f4 100644 --- a/themes/Ying/assets/js/modules/utils.js +++ b/themes/Ying/assets/js/modules/utils.js @@ -105,7 +105,7 @@ window.initCodeFold = function() { // Add Button const btn = document.createElement('button'); btn.className = 'code-expand-btn'; - btn.innerHTML = ' 展开代码 / Expand'; + btn.innerHTML = ' 展开代码 '; btn.onclick = function() { wrapper.classList.remove('collapsed'); // Hide button after expand, or change to collapse? @@ -134,10 +134,10 @@ window.initCodeCopy = function() { const btn = document.createElement('button'); btn.className = 'copy-code-btn'; btn.innerHTML = ''; - btn.title = "复制代码 / Copy Code"; + btn.title = "复制代码"; btn.style.cssText = ` position: absolute; - top: 5px; + top: -6px; right: 5px; background: transparent; border: none;