style: 优化文章边距

This commit is contained in:
LooseLi
2023-08-25 15:51:51 +08:00
parent 62546f405e
commit 8aa2e58c36
2 changed files with 6 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export default function ArticleDetail(props) {
data-aos-duration="300"
data-aos-once="true"
data-aos-anchor-placement="top-bottom"
className="subpixel-antialiased overflow-y-hidden py-10 px-5 lg:pt-24 md:px-24 dark:border-gray-700 bg-white dark:bg-hexo-black-gray"
className="subpixel-antialiased overflow-y-hidden py-10 px-5 lg:pt-24 md:px-24 dark:border-gray-700 bg-white dark:bg-hexo-black-gray article-padding"
>
{showArticleInfo && <header>
@@ -78,7 +78,7 @@ export default function ArticleDetail(props) {
</header>}
{/* Notion内容主体 */}
<article className='px-1 max-w-3xl mx-auto'>
<article className='mx-auto'>
{post && (<NotionPage post={post} />)}
</article>

View File

@@ -15,6 +15,10 @@ const Style = () => {
background-color: black;
}
.article-padding {
padding: 40px;
}
`}</style>
}