照片集点击图片

This commit is contained in:
tlyong1992
2022-06-08 09:48:00 +08:00
parent 62950dc8ef
commit b101944732
2 changed files with 14 additions and 1 deletions

View File

@@ -61,12 +61,20 @@ const NotionPage = ({ post }) => {
const cards = document.getElementsByClassName('notion-collection-card')
for (const e of cards) {
e.removeAttribute('href')
const links = e.querySelectorAll('.notion-link')
if (links && links.length > 0) {
for (const l of links) {
l.onclick = function() {
window.open('http://' + l.innerText)
}
}
}
}
}
}, 800)
addWatch4Dom()
}, [])
})
return <div id='container' className='max-w-4xl mx-auto'>
<NotionRenderer

View File

@@ -1352,8 +1352,13 @@ svg.notion-page-icon {
margin-right: 6px;
}
.notion-collection-card{
cursor: default !important;
}
.notion-collection-card-property .notion-link {
border-bottom: 0 none;
cursor: pointer
}
.notion-collection-card-property .notion-page-title {