Skip to content

Commit

Permalink
tweak editor border width
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Sep 23, 2016
1 parent 07639ac commit 6c004af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@
<div
class="editor"
:class="{'focus-mode': tab.isFocusMode}"
:style="{width: getSplitWidth('editor'), 'font-size': settings.fontSize + 'px'}"
:style="{
width: getSplitWidth('editor'),
'font-size': settings.fontSize + 'px',
'border-right-width': currentTab.writingMode === 'default' ? '1px' : '0'
}"
v-show="currentTab && currentTab.writingMode !== 'preview'">
<textarea class="editor-input" :id="'editor-' + $index">{{ tab.content }}</textarea>
<div class="resize-bar" @mousedown="resizeStart($event, $index)"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/css/theme/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $light: #ccc;
}

.editor {
border-right-color: $dark;
border-right-color: $light-dark;
.CodeMirror {
background-color: $dark !important;
}
Expand Down

0 comments on commit 6c004af

Please sign in to comment.