mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
mermaid
This commit is contained in:
@@ -92,22 +92,4 @@ const mapPageUrl = id => {
|
||||
return '/' + id.replace(/-/g, '')
|
||||
}
|
||||
|
||||
// function getMediumZoomMargin() {
|
||||
// const width = window.innerWidth
|
||||
|
||||
// if (width < 500) {
|
||||
// return 8
|
||||
// } else if (width < 800) {
|
||||
// return 20
|
||||
// } else if (width < 1280) {
|
||||
// return 30
|
||||
// } else if (width < 1600) {
|
||||
// return 40
|
||||
// } else if (width < 1920) {
|
||||
// return 48
|
||||
// } else {
|
||||
// return 72
|
||||
// }
|
||||
// }
|
||||
|
||||
export default NotionPage
|
||||
|
||||
@@ -32,7 +32,9 @@ const PrismMac = () => {
|
||||
renderPrismMac()
|
||||
})
|
||||
}
|
||||
renderMermaid()
|
||||
setTimeout(() => {
|
||||
renderMermaid()
|
||||
}, 500)
|
||||
}, [])
|
||||
return <></>
|
||||
}
|
||||
|
||||
@@ -109,7 +109,9 @@ const initTheme = () => {
|
||||
elements[elements.length - 1].scrollIntoView()
|
||||
// 删除前面的元素,只保留最后一个元素
|
||||
elements[0].parentNode.removeChild(elements[0])
|
||||
elements.pop()
|
||||
if (Object.prototype.hasOwnProperty.call(elements, 'pop')) {
|
||||
elements.pop()
|
||||
}
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user