hexo: 适配ipad样式

This commit is contained in:
tangly1024
2022-04-26 13:30:47 +08:00
parent 1a7efd80ac
commit 69ac8a13c4
4 changed files with 8 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ const NotionPage = ({ post }) => {
}
}
return <div id='container'>
return <div id='container' className='max-w-4xl mx-auto'>
<NotionRenderer
recordMap={post.blockMap}
mapPageUrl={mapPageUrl}

View File

@@ -62,13 +62,14 @@ const LayoutBase = props => {
<main id="wrapper" className="w-full py-8 md:px-8 xl:px-24 min-h-screen">
<div
id="container-inner"
className="pt-14 w-full mx-auto lg:flex justify-center lg:space-x-4"
className="pt-14 w-full mx-auto xl:flex xl:space-x-4 justify-center"
>
<div className="flex-grow w-full">
<div className="w-full">
{onLoading ? <LoadingCover /> : children}
</div>
<SideRight {...props} slot={rightAreaSlot} />
<div className='xl:w-96 xl:pt-0 xl:px-2 pt-4'>
<SideRight {...props} slot={rightAreaSlot} />
</div>
</div>
</main>

View File

@@ -58,7 +58,7 @@ export const LayoutSlug = props => {
<article itemScope itemType="https://schema.org/Movie" className="subpixel-antialiased" >
{/* Notion文章主体 */}
<section id='notion-article' className='px-5'>
<section id='notion-article' className='px-5 justify-center mx-auto'>
{post && <NotionPage post={post} />}
</section>

View File

@@ -13,7 +13,7 @@ export default function SideRight(props) {
} = props
return (
<div className={'lg:w-80 px-2 space-y-4 pt-4 lg:pt-0'}>
<div className={'space-y-4'}>
<InfoCard {...props} />
{CONFIG_HEXO.WIDGET_ANALYTICS && <AnalyticsCard {...props} />}