Merge pull request #550 from tangly1024/develop

pdf-适配横向
This commit is contained in:
tangly1024
2022-12-07 22:45:26 +08:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

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

View File

@@ -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 ' +