From 1448379d6cbec4f142a86c359d38545c87701642 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 6 Nov 2021 23:01:12 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20react-notion-x=E9=99=8D=E7=BA=A7:4.6.5?= =?UTF-8?q?=20=E5=BC=80=E5=90=AFmedia-zoom;=20notion-viewport=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=81=AE=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Toc.js | 11 ++++------- package.json | 6 +++--- pages/article/[slug].js | 2 +- styles/notion.css | 5 +++-- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/components/Toc.js b/components/Toc.js index 75900311..c850949f 100644 --- a/components/Toc.js +++ b/components/Toc.js @@ -1,7 +1,7 @@ import React, { useCallback } from 'react' import throttle from 'lodash.throttle' import { uuidToId } from 'notion-utils' -import { cs } from 'react-notion-x' +// import { cs } from 'react-notion-x' /** * 目录导航组件 @@ -62,12 +62,9 @@ const Toc = ({ toc }) => { -
标签:
+
标签:
{post.tags.map(tag => ( ))} diff --git a/styles/notion.css b/styles/notion.css index a24dc846..6e84d653 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -180,14 +180,15 @@ min-height: 100vh; } -/* .notion-viewport { +.notion-viewport { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -10; -} */ + pointer-events: none; +} .medium-zoom-overlay { z-index: 300;