mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
announcement
This commit is contained in:
@@ -37,7 +37,7 @@ const Modal = dynamic(
|
||||
() => import('react-notion-x/build/third-party/modal').then((m) => m.Modal), { ssr: false }
|
||||
)
|
||||
|
||||
const NotionPage = ({ post }) => {
|
||||
const NotionPage = ({ post, className }) => {
|
||||
const zoom = isBrowser() && mediumZoom({
|
||||
container: '.notion-viewport',
|
||||
background: 'rgba(0, 0, 0, 0.2)',
|
||||
@@ -80,7 +80,7 @@ const NotionPage = ({ post }) => {
|
||||
return <>{post?.summary || ''}</>
|
||||
}
|
||||
|
||||
return <div id='container' className='max-w-5xl font-medium mx-auto'>
|
||||
return <div id='container' className={`max-w-5xl font-medium mx-auto ${className}`}>
|
||||
<NotionRenderer
|
||||
recordMap={post.blockMap}
|
||||
mapPageUrl={mapPageUrl}
|
||||
|
||||
Reference in New Issue
Block a user