File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
src/components/notion-blocks Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,22 @@ const user = url.pathname.split('/')[1]
7
7
const id = url .pathname .split (' /' )[3 ]
8
8
---
9
9
10
- <div class =" codepen-embed" >
11
- <p
12
- class =" codepen"
13
- data-height =" 500"
14
- data-slug-hash ={ id .toString ()}
15
- data-user ={ user .toString ()}
16
- style =" height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;"
17
- >
18
- </p >
19
- </div >
10
+ <p
11
+ class =" codepen"
12
+ data-slug-hash ={ id .toString ()}
13
+ data-user ={ user .toString ()}
14
+ style =" box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;"
15
+ >
16
+ </p >
20
17
<script async src =" https://cpwebassets.codepen.io/assets/embed/ei.js" ></script >
21
18
22
- <style >
23
- .codepen-embed {
19
+ <style is:global >
20
+ .cp_embed_wrapper {
21
+ width: 100%;
22
+ aspect-ratio: 1.6 / 1;
24
23
background-color: #fff;
25
24
}
25
+ .cp_embed_wrapper iframe {
26
+ height: 100% !important;
27
+ }
26
28
</style >
You can’t perform that action at this time.
0 commit comments