Skip to content

Commit 6c004af

Browse files
committed
tweak editor border width
1 parent 07639ac commit 6c004af

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/main.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@
111111
<div
112112
class="editor"
113113
:class="{'focus-mode': tab.isFocusMode}"
114-
:style="{width: getSplitWidth('editor'), 'font-size': settings.fontSize + 'px'}"
114+
:style="{
115+
width: getSplitWidth('editor'),
116+
'font-size': settings.fontSize + 'px',
117+
'border-right-width': currentTab.writingMode === 'default' ? '1px' : '0'
118+
}"
115119
v-show="currentTab && currentTab.writingMode !== 'preview'">
116120
<textarea class="editor-input" :id="'editor-' + $index">{{ tab.content }}</textarea>
117121
<div class="resize-bar" @mousedown="resizeStart($event, $index)"></div>

src/css/theme/dark.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $light: #ccc;
6666
}
6767

6868
.editor {
69-
border-right-color: $dark;
69+
border-right-color: $light-dark;
7070
.CodeMirror {
7171
background-color: $dark !important;
7272
}

0 commit comments

Comments
 (0)