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 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