mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
fix: 修正 ABCJS 渲染使用 textContent 以提高音樂譜顯示準確性
style: 移除多餘的換行符號以保持代碼整潔
This commit is contained in:
2
layout/includes/third-party/abcjs/abcjs.pug
vendored
2
layout/includes/third-party/abcjs/abcjs.pug
vendored
@@ -24,7 +24,7 @@ script.
|
|||||||
const options = { ...params, responsive: "resize" }
|
const options = { ...params, responsive: "resize" }
|
||||||
|
|
||||||
// Render the music score using ABCJS.renderAbc
|
// Render the music score using ABCJS.renderAbc
|
||||||
ABCJS.renderAbc(ele, ele.innerHTML, options)
|
ABCJS.renderAbc(ele, ele.textContent, options)
|
||||||
}
|
}
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -462,6 +462,4 @@
|
|||||||
|
|
||||||
& > :first-child
|
& > :first-child
|
||||||
opacity: 0
|
opacity: 0
|
||||||
|
|
||||||
transform: translateY(10px)
|
transform: translateY(10px)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user