编辑区域右上角图标支持隐藏
This commit is contained in:
parent
380980d66f
commit
554547af5a
@ -160,7 +160,7 @@ export default {
|
|||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
color: #dea731;
|
color: #dea731;
|
||||||
opacity: 0.4;
|
opacity: 0.3;
|
||||||
|
|
||||||
&:active,
|
&:active,
|
||||||
&:focus,
|
&:focus,
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<div class="gutter__background" v-if="styles.editorGutterWidth" :style="{width: styles.editorGutterWidth + 'px'}"></div>
|
<div class="gutter__background" v-if="styles.editorGutterWidth" :style="{width: styles.editorGutterWidth + 'px'}"></div>
|
||||||
</div>
|
</div>
|
||||||
<editor></editor>
|
<editor></editor>
|
||||||
<editor-in-page-buttons></editor-in-page-buttons>
|
<editor-in-page-buttons v-if="editorShowInPageButtons"></editor-in-page-buttons>
|
||||||
<div class="gutter" :style="{left: styles.editorGutterLeft + 'px'}">
|
<div class="gutter" :style="{left: styles.editorGutterLeft + 'px'}">
|
||||||
<sticky-comment v-if="styles.editorGutterWidth && stickyComment === 'top'"></sticky-comment>
|
<sticky-comment v-if="styles.editorGutterWidth && stickyComment === 'top'"></sticky-comment>
|
||||||
<current-discussion v-if="styles.editorGutterWidth"></current-discussion>
|
<current-discussion v-if="styles.editorGutterWidth"></current-discussion>
|
||||||
@ -108,6 +108,9 @@ export default {
|
|||||||
showFindReplace() {
|
showFindReplace() {
|
||||||
return !!store.state.findReplace.type;
|
return !!store.state.findReplace.type;
|
||||||
},
|
},
|
||||||
|
editorShowInPageButtons() {
|
||||||
|
return store.getters['data/computedSettings'].editor.showInPageButtons;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions('layout', [
|
...mapActions('layout', [
|
||||||
|
@ -15,6 +15,8 @@ editor:
|
|||||||
inlineImages: true
|
inlineImages: true
|
||||||
# Use monospaced font only
|
# Use monospaced font only
|
||||||
monospacedFontOnly: false
|
monospacedFontOnly: false
|
||||||
|
# 是否显示右上角图标
|
||||||
|
showInPageButtons: true
|
||||||
|
|
||||||
# Keyboard shortcuts
|
# Keyboard shortcuts
|
||||||
# See https://craig.is/killing/mice
|
# See https://craig.is/killing/mice
|
||||||
|
Loading…
Reference in New Issue
Block a user