File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/react-notion-x/src/third-party Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ export const CollectionCard: React.FC<CollectionCardProps> = ({
2929 } = ctx
3030 let coverContent = null
3131
32- const { page_cover_position = 0.5 , card_cover_position = 0.5 } = block . format || { }
32+ const { page_cover_position = 0.5 , card_cover_position = 0.5 } =
33+ block . format || { }
3334 const coverPosition = ( 1 - page_cover_position ) * 100
3435 const cardCoverPosition = ( 1 - card_cover_position ) * 100
3536
@@ -59,7 +60,7 @@ export const CollectionCard: React.FC<CollectionCardProps> = ({
5960 alt = { caption || 'notion image' }
6061 style = { {
6162 objectFit : coverAspect ,
62- objectPosition : `center ${ cardCoverPosition } %`
63+ objectPosition : `center ${ cardCoverPosition } %`
6364 } }
6465 />
6566 )
You can’t perform that action at this time.
0 commit comments