@@ -133,56 +133,49 @@ export const Block: React.FC<Block> = props => {
133133 const coverPosition = ( 1 - ( page_cover_position || 0.5 ) ) * 100 ;
134134
135135 return (
136- < div className = "notion notion-app" >
137- < div className = "notion-cursor-listener" >
138- < div className = "notion-frame" >
139- { ! hideHeader && (
140- < PageHeader
141- blockMap = { blockMap }
142- mapPageUrl = { mapPageUrl }
143- mapImageUrl = { mapImageUrl }
144- />
145- ) }
146-
147- < div className = "notion-scroller" >
148- { page_cover && (
149- < img
150- src = { mapImageUrl ( page_cover ) }
151- alt = { getTextContent ( blockValue . properties . title ) }
152- className = "notion-page-cover"
153- style = { {
154- objectPosition : `center ${ coverPosition } %`
155- } }
156- />
157- ) }
158- < main
159- className = { classNames (
160- "notion-page" ,
161- ! page_cover && "notion-page-offset" ,
162- page_full_width && "notion-full-width" ,
163- page_small_text && "notion-small-text"
164- ) }
165- >
166- { page_icon && (
167- < PageIcon
168- className = {
169- page_cover ? "notion-page-icon-offset" : undefined
170- }
171- block = { block }
172- big
173- mapImageUrl = { mapImageUrl }
174- />
175- ) }
176-
177- < div className = "notion-title" >
178- { renderChildText ( blockValue . properties . title ) }
179- </ div >
180-
181- { children }
182- </ main >
183- </ div >
136+ < div className = "notion" >
137+ { ! hideHeader && (
138+ < PageHeader
139+ blockMap = { blockMap }
140+ mapPageUrl = { mapPageUrl }
141+ mapImageUrl = { mapImageUrl }
142+ />
143+ ) }
144+ { page_cover && (
145+ < img
146+ src = { mapImageUrl ( page_cover ) }
147+ alt = { getTextContent ( blockValue . properties . title ) }
148+ className = "notion-page-cover"
149+ style = { {
150+ objectPosition : `center ${ coverPosition } %`
151+ } }
152+ />
153+ ) }
154+ < main
155+ className = { classNames (
156+ "notion-page" ,
157+ ! page_cover && "notion-page-offset" ,
158+ page_full_width && "notion-full-width" ,
159+ page_small_text && "notion-small-text"
160+ ) }
161+ >
162+ { page_icon && (
163+ < PageIcon
164+ className = {
165+ page_cover ? "notion-page-icon-offset" : undefined
166+ }
167+ block = { block }
168+ big
169+ mapImageUrl = { mapImageUrl }
170+ />
171+ ) }
172+
173+ < div className = "notion-title" >
174+ { renderChildText ( blockValue . properties . title ) }
184175 </ div >
185- </ div >
176+
177+ { children }
178+ </ main >
186179 </ div >
187180 ) ;
188181 } else {
0 commit comments