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;