11<template >
2- <NcAppContent :class =" { loading: loading || isManualSave, 'icon-error': !loading && (!note || note.error), 'sidebar-open': sidebarOpen }" >
2+ <NcAppContent :class =" { loading: loading || isManualSave, 'icon-error': !loading && (!note || note.error)}" >
33 <div v-if =" !loading && note && !note.error && !note.deleting"
44 id =" note-container"
55 class =" note-container"
4747 </div >
4848 <span class =" action-buttons" >
4949 <NcActions :open.sync =" actionsOpen" container =" .action-buttons" menu-align =" right" >
50- <NcActionButton v-show =" !sidebarOpen && !fullscreen"
51- icon =" icon-details"
52- @click =" onToggleSidebar"
53- >
54- <SidebarIcon slot =" icon" :size =" 20" />
55- {{ t('notes', 'Details') }}
56- </NcActionButton >
5750 <NcActionButton
5851 v-tooltip.left =" t('notes', 'CTRL + /')"
5952 @click =" onTogglePreview"
@@ -109,7 +102,6 @@ import EditIcon from 'vue-material-design-icons/LeadPencil.vue'
109102import EyeIcon from ' vue-material-design-icons/Eye.vue'
110103import FullscreenIcon from ' vue-material-design-icons/Fullscreen.vue'
111104import NoEditIcon from ' vue-material-design-icons/PencilOff.vue'
112- import SidebarIcon from ' vue-material-design-icons/PageLayoutSidebarRight.vue'
113105import SyncAlertIcon from ' vue-material-design-icons/SyncAlert.vue'
114106
115107import { config } from ' ../config.js'
@@ -133,7 +125,6 @@ export default {
133125 NcAppContent,
134126 NcModal,
135127 NoEditIcon,
136- SidebarIcon,
137128 SyncAlertIcon,
138129 TheEditor,
139130 ThePreview,
@@ -179,9 +170,6 @@ export default {
179170 isManualSave () {
180171 return store .state .app .isManualSave
181172 },
182- sidebarOpen () {
183- return store .state .app .sidebarOpen
184- },
185173 },
186174
187175 watch: {
@@ -293,11 +281,6 @@ export default {
293281 this .actionsOpen = false
294282 },
295283
296- onToggleSidebar () {
297- store .commit (' setSidebarOpen' , ! store .state .app .sidebarOpen )
298- this .actionsOpen = false
299- },
300-
301284 onVisibilityChange () {
302285 if (document .visibilityState === ' visible' ) {
303286 this .stopRefreshTimer ()
@@ -436,9 +419,6 @@ export default {
436419 transition-duration : var (--animation-quick );
437420 transition-property : padding-right;
438421 }
439- .sidebar-open .note-container {
440- padding-right : 0px ;
441- }
442422}
443423
444424/* distraction free styles */
0 commit comments