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