Skip to content

Commit 02776ce

Browse files
committed
[vue3] opt 去掉字体默认样式 tzfun#88
1 parent b28e22e commit 02776ce

File tree

5 files changed

+159
-73
lines changed

5 files changed

+159
-73
lines changed

src/Terminal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ defineExpose({
15641564
</slot>
15651565
</div>
15661566
<div class="t-window"
1567-
:style="`${showHeader ? `height:calc(100% - ${headerHeight}px);margin-top: ${headerHeight}px;` : 'height:100%'};${enableFold ? 'padding:0 0 0 20px;' : 'padding:5px 10px;'}`"
1567+
:style="`${showHeader ? `height:calc(100% - ${headerHeight}px);margin-top: ${headerHeight}px;` : 'height:100%'};${enableFold ? 'padding:0 10px 15px 20px;' : 'padding:0 10px 15px 10px;'}`"
15681568
ref="terminalWindowRef"
15691569
@click="_focus"
15701570
@dblclick="_focus(true)">

src/css/scrollbar.css

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
.t-code::-webkit-scrollbar,
33
.t-text-editor::-webkit-scrollbar,
44
.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar,
5-
.t-window pre::-webkit-scrollbar
5+
.t-window pre::-webkit-scrollbar,
6+
.t-cmd-tips::-webkit-scrollbar
67
{
78
width: 8px;
89
height: 8px;
@@ -12,7 +13,8 @@
1213
.t-code::-webkit-scrollbar-button,
1314
.t-text-editor::-webkit-scrollbar-button,
1415
.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-button,
15-
.t-window pre::-webkit-scrollbar-button
16+
.t-window pre::-webkit-scrollbar-button,
17+
.t-cmd-tips::-webkit-scrollbar-button
1618
{
1719
width: 0;
1820
height: 0;
@@ -23,7 +25,8 @@
2325
.t-code::-webkit-scrollbar-thumb,
2426
.t-text-editor::-webkit-scrollbar-thumb,
2527
.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-thumb,
26-
.t-window pre::-webkit-scrollbar-thumb
28+
.t-window pre::-webkit-scrollbar-thumb,
29+
.t-cmd-tips::-webkit-scrollbar-thumb
2730
{
2831
border-radius: 6px;
2932
border-style: dashed;
@@ -37,7 +40,8 @@
3740
.t-code::-webkit-scrollbar-thumb:hover,
3841
.t-text-editor::-webkit-scrollbar-thumb:hover,
3942
.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover,
40-
.t-window pre::-webkit-scrollbar-thumb:hover
43+
.t-window pre::-webkit-scrollbar-thumb:hover,
44+
.t-cmd-tips::-webkit-scrollbar-thumb:hover
4145
{
4246
background: rgba(157, 165, 183, 0.7);
4347
cursor: pointer;
@@ -47,7 +51,8 @@
4751
.t-code::-webkit-scrollbar-track,
4852
.t-text-editor::-webkit-scrollbar-track,
4953
.t-vue-codemirror .vue-codemirror .CodeMirror .CodeMirror-hscrollbar::-webkit-scrollbar-track,
50-
.t-window pre::-webkit-scrollbar-track
54+
.t-window pre::-webkit-scrollbar-track,
55+
.t-cmd-tips::-webkit-scrollbar-track
5156
{
5257
border-radius: 6px;
53-
}
58+
}

0 commit comments

Comments
 (0)