From 62ff011816e3537cd1b58478317dc3e09e20c96d Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 7 Dec 2022 22:39:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?pdf=20=E6=A8=AA=E5=90=91=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- styles/notion.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/styles/notion.css b/styles/notion.css index ed7b3fde..adf92a8c 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -1974,4 +1974,8 @@ pre[class*='language-'] { margin: 6px 0; font-size: 1em; /* color: var(--notion-gray); */ +} + +.notion-asset-wrapper-pdf>div{ + width:unset!important } \ No newline at end of file From e76aa37d9f7dfd65432ea4b7cf2ac07d409e7531 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 7 Dec 2022 22:39:29 +0800 Subject: [PATCH 2/2] fix link null --- themes/medium/components/TopNavBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/medium/components/TopNavBar.js b/themes/medium/components/TopNavBar.js index 7dd9433f..4835df81 100644 --- a/themes/medium/components/TopNavBar.js +++ b/themes/medium/components/TopNavBar.js @@ -55,7 +55,7 @@ export default function TopNavBar(props) { {/* 顶部菜单 */}
{navs && navs.map(link => { - if (link.show) { + if (link?.show) { const selected = (router.pathname === link.to) || (router.asPath === link.to) return