File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const light = 'light'
19
19
const vue = ' vue'
20
20
const dark = ' dark'
21
21
const height = ' 200px'
22
- const borderRadius = ' 0px '
22
+ const borderRadius = ' 10px '
23
23
</script >
24
24
<template >
25
25
<div class =" wrapper" >
@@ -37,6 +37,8 @@ const borderRadius = '0px'
37
37
:lang =" vue"
38
38
:codeLines =" true"
39
39
:borderRadius =" borderRadius"
40
+ :nameShow =" false"
41
+ :copy =" false"
40
42
></HighCode >
41
43
</div >
42
44
</template >
Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ nextTick(() => {
132
132
class =" code_area"
133
133
ref =" codeArea"
134
134
:style =" {
135
+ paddingBottom: nameShow === true && copy === true ? '20px' : '14px',
136
+ paddingTop: nameShow === true && copy === true ? 0 : '14px',
135
137
borderBottomLeftRadius: props.borderRadius,
136
138
borderBottomRightRadius: props.borderRadius,
137
139
borderTopLeftRadius: withoutHeader == true ? props.borderRadius : 0,
@@ -179,6 +181,7 @@ nextTick(() => {
179
181
padding-top : 0px ;
180
182
padding-left : 24px ;
181
183
overflow : overlay ;
184
+ margin : auto 0 ;
182
185
// border-radius: 5px;
183
186
display : flex ;
184
187
& _link {
@@ -204,7 +207,8 @@ nextTick(() => {
204
207
position : relative ;
205
208
display : flex ;
206
209
justify-content : flex-start ;
207
- height : 30px ;
210
+ // height: 30px;
211
+
208
212
width : 100% ;
209
213
}
210
214
pre code {
You can’t perform that action at this time.
0 commit comments