fixed 部署代码

This commit is contained in:
Vaica committed 2026-02-01 12:45:32 +08:00
1 parent 2d07955008
commit d19b09a985
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '18' node-version: '22'
- name: Install Node.js dependencies - name: Install Node.js dependencies
run: npm install run: npm install
+3 -3
View File
@@ -105,7 +105,7 @@ window.initCodeFold = function() {
// Add Button // Add Button
const btn = document.createElement('button'); const btn = document.createElement('button');
btn.className = 'code-expand-btn'; btn.className = 'code-expand-btn';
btn.innerHTML = '<span><i class="ri-arrow-down-s-line" style="margin-right:4px;"></i> 展开代码 / Expand</span>'; btn.innerHTML = '<span><i class="ri-arrow-down-s-line" style="margin-right:4px;"></i> 展开代码 </span>';
btn.onclick = function() { btn.onclick = function() {
wrapper.classList.remove('collapsed'); wrapper.classList.remove('collapsed');
// Hide button after expand, or change to collapse? // Hide button after expand, or change to collapse?
@@ -134,10 +134,10 @@ window.initCodeCopy = function() {
const btn = document.createElement('button'); const btn = document.createElement('button');
btn.className = 'copy-code-btn'; btn.className = 'copy-code-btn';
btn.innerHTML = '<i class="ri-file-copy-line"></i>'; btn.innerHTML = '<i class="ri-file-copy-line"></i>';
btn.title = "复制代码 / Copy Code"; btn.title = "复制代码";
btn.style.cssText = ` btn.style.cssText = `
position: absolute; position: absolute;
top: 5px; top: -6px;
right: 5px; right: 5px;
background: transparent; background: transparent;
border: none; border: none;