File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const Asset: React.FC<{
24
24
25
25
const aspectRatio = block_aspect_ratio || block_height / block_width ;
26
26
27
- if ( type === "figma" ) {
27
+ if ( type === "embed" || type === "video" || type === " figma") {
28
28
return (
29
29
< div
30
30
style = { {
@@ -34,25 +34,12 @@ const Asset: React.FC<{
34
34
>
35
35
< iframe
36
36
className = "notion-image-inset"
37
- src = { value . properties . source [ 0 ] [ 0 ] }
37
+ src = { type === "figma" ? value . properties . source [ 0 ] [ 0 ] : display_source }
38
38
/>
39
39
</ div >
40
40
) ;
41
41
}
42
42
43
- if ( type === "embed" || type === "video" ) {
44
- return (
45
- < div
46
- style = { {
47
- paddingBottom : `${ aspectRatio * 100 } %` ,
48
- position : "relative"
49
- } }
50
- >
51
- < iframe className = "notion-image-inset" src = { display_source } />
52
- </ div >
53
- ) ;
54
- }
55
-
56
43
const src = mapImageUrl ( value . properties . source [ 0 ] [ 0 ] ) ;
57
44
58
45
if ( type === "image" ) {
You can’t perform that action at this time.
0 commit comments