File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
docs/.vuepress/theme/components Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" previewer" >
3
- <div class =" content" ></div >
3
+ <div class =" previewer-content" >
4
+ <!-- add a wrapper to prevent overflow hidden property effect box-shadow -->
5
+ <div class =" iframe-wrapper" v-if =" $page.frontmatter.previewLink" >
6
+ <iframe :src =" $page.frontmatter.previewLink" frameborder =" 0" width =" 100%" height =" 100%" ></iframe >
7
+ </div >
8
+ </div >
4
9
</div >
5
10
</template >
6
11
@@ -21,7 +26,7 @@ export default {
21
26
height $s-preview-width * $ratio
22
27
background url ('../assets/images/16th-mockup.png' ) no-repeat center / 100%
23
28
24
- .content
29
+ .previewer- content
25
30
$s-vertical = 28px
26
31
$s-horizontal = 11px
27
32
@@ -34,4 +39,11 @@ export default {
34
39
background-color #f f f
35
40
box-shadow 0 0 0 1.5px rgba (0 ,0 ,0 ,0.8 )
36
41
border-radius 32px
42
+
43
+ .iframe-wrapper
44
+ position relative
45
+ width 100%
46
+ height 100%
47
+ border-radius 32px
48
+ overflow hidden
37
49
</style >
You can’t perform that action at this time.
0 commit comments