File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 26
26
</div >
27
27
28
28
<MDC
29
- v-if =" preview"
29
+ v-if =" preview && form.message "
30
30
:value =" form.message"
31
31
class =" mt-2 border border-amber rounded-lg border-solid p-2 shadow"
32
32
/>
Original file line number Diff line number Diff line change 4
4
{{ $props.language ?? 'text' }}
5
5
</span >
6
6
<pre :class =" $props.class" >
7
- <slot />
7
+ <div class =" flex-1 px-3" >
8
+ <slot />
9
+ </div >
8
10
</pre >
9
11
</div >
10
12
</template >
@@ -50,17 +52,18 @@ watchEffect(() => {
50
52
pre {
51
53
font-size : 14px ;
52
54
background-color : white ;
53
- padding : 10px ;
54
55
border-radius : 6px ;
55
56
margin-top : 1em ;
56
57
overflow-x : auto ;
58
+ display : flex ;
59
+ flex-direction : column ;
60
+ flex-wrap : wrap ;
57
61
}
58
62
59
63
pre code {
60
64
display : block ;
61
- margin-top : -1em ;
62
- margin-bottom : -2em ;
63
65
white-space : pre ;
66
+ margin : -2em 0 ;
64
67
}
65
68
66
69
pre code .line {
@@ -82,6 +85,6 @@ pre code .line {
82
85
}
83
86
84
87
.copy-btn :hover {
85
- opacity : 1 !important ;
88
+ opacity : 1 ;
86
89
}
87
90
</style >
You can’t perform that action at this time.
0 commit comments