From f00897884b85eed5272fdfa4eebdfb991ac81560 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 22 Apr 2024 14:09:34 +0800 Subject: [PATCH] =?UTF-8?q?Notion=20=E8=A7=86=E9=A2=91=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/_app.js | 4 ++-- styles/notion.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/_app.js b/pages/_app.js index 406338bada9..deab9a8b5fc 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -3,8 +3,8 @@ import '@/styles/globals.css' import '@/styles/utility-patterns.css' // core styles shared by all of react-notion-x (required) -import '@/styles/notion.css' // 重写部分样式 -import 'react-notion-x/src/styles.css' +// import 'react-notion-x/src/styles.css' // 原版的react-notion-x +import '@/styles/notion.css' // 重写notion样式 import useAdjustStyle from '@/hooks/useAdjustStyle' import { GlobalContextProvider } from '@/lib/global' diff --git a/styles/notion.css b/styles/notion.css index 2bc799f4875..83c5327b5d9 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -706,7 +706,7 @@ svg.notion-page-icon { } .notion-asset-wrapper-full { - /* max-width: 100vw; */ + max-width: inherit; } .notion-asset-wrapper img { @@ -1565,7 +1565,7 @@ code[class*='language-'] { } .notion-asset-wrapper-full { - max-width: 100vw; + max-width: inherit; } }