gatsby-source-notion-database
Advanced tools
Comparing version 0.6.2 to 0.6.3
{ | ||
"name": "gatsby-source-notion-database", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Load data from Notion's database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -48,5 +48,16 @@ const puppeteer = require('puppeteer'); | ||
// 表格视图 CSS 修复 | ||
document.querySelectorAll("div.notion-scroller.horizontal").forEach(item => { | ||
item.children[0].style.padding = 0 | ||
item.previousElementSibling.style.paddingLeft = 0 | ||
}) | ||
// 文章内容 | ||
let content = document.querySelector('#notion-app > div > div.notion-cursor-listener > div > div > div.notion-page-content') | ||
// 可编辑内容修复 | ||
let contenteditable = content.querySelectorAll("div[contenteditable=true]") | ||
contenteditable.forEach(i => { | ||
i.setAttribute("contenteditable", false) | ||
}) | ||
if (content) { | ||
@@ -53,0 +64,0 @@ return content.innerHTML |
12008
217