Skip to content

Commit

Permalink
Merge pull request #550 from tangly1024/develop
Browse files Browse the repository at this point in the history
pdf-适配横向
  • Loading branch information
tangly1024 committed Dec 7, 2022
2 parents d590ce4 e76aa37 commit dbb10f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions styles/notion.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion themes/medium/components/TopNavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 55,7 @@ export default function TopNavBar(props) {
{/* 顶部菜单 */}
<div className='hidden md:flex'>
{navs && navs.map(link => {
if (link.show) {
if (link?.show) {
const selected = (router.pathname === link.to) || (router.asPath === link.to)
return <Link key={`${link.id}-${link.to}`} title={link.to} href={link.to} >
<a target={link.to.indexOf('http') === 0 ? '_blank' : '_self'} className={'px-2 duration-300 text-sm justify-between dark:text-gray-300 cursor-pointer flex flex-nowrap items-center '
Expand Down

0 comments on commit dbb10f7

Please sign in to comment.