编辑区域右上角图标支持隐藏

This commit is contained in:
xiaoqi.cxq 2022-10-09 18:41:51 +08:00
parent 380980d66f
commit 554547af5a
3 changed files with 7 additions and 2 deletions

View File

@ -160,7 +160,7 @@ export default {
.icon {
color: #dea731;
opacity: 0.4;
opacity: 0.3;
&:active,
&:focus,

View File

@ -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', [

View File

@ -15,6 +15,8 @@ editor:
inlineImages: true
# Use monospaced font only
monospacedFontOnly: false
# 是否显示右上角图标
showInPageButtons: true
# Keyboard shortcuts
# See https://craig.is/killing/mice