From 00c0b6cc1aaa26903bec4ea0bb09c837114a8af9 Mon Sep 17 00:00:00 2001 From: Ruslan Semak Date: Mon, 21 Apr 2025 17:22:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=81=D1=91=20=D1=80=D0=B0=D0=B2=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/default/components/nav-sidebar.vue | 55 ++++++++++++++----- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/client/themes/default/components/nav-sidebar.vue b/client/themes/default/components/nav-sidebar.vue index fd749636..f3a778c4 100644 --- a/client/themes/default/components/nav-sidebar.vue +++ b/client/themes/default/components/nav-sidebar.vue @@ -14,7 +14,7 @@ depressed :color='$vuetify.theme.dark ? `grey darken-4` : `blue darken-2`' style='flex: 1 1 100%;' - @click='switchMode(`browse`)' + @click='switchMode(`tree`)' ) v-icon(left) mdi-file-tree .body-2.text-none {{$t('common:sidebar.browse')}} @@ -26,7 +26,7 @@ @click='switchMode(`tree`)' ) v-icon(left) mdi-file-tree - .body-2.text-none {{$t('common:sidebar.tree')}} + .body-2.text-none {{'Обзор'}} v-btn.ml-3( v-else-if='currentMode === `tree`' depressed @@ -361,11 +361,12 @@ export default { mounted () { this.currentParent.title = `/ ${this.$t('common:sidebar.root')}` if (this.navMode === 'TREE') { - this.currentMode = 'browse' - } else if (this.navMode === 'STATIC') { - this.currentMode = 'custom' - } else if (this.navMode === 'NEWTREE') { this.currentMode = 'tree' + } + if (this.navMode === 'STATIC') { + this.currentMode = 'custom' + // } else if (this.navMode === 'NEWTREE') { + // this.currentMode = 'tree' } else { this.currentMode = window.localStorage.getItem('navPref') || 'custom' } @@ -387,7 +388,7 @@ export default { padding: 8px 0; font-weight: 500; line-height: 1rem; - font-size: 0.8rem; + font-size: 1rem; } .tree-item-link { @@ -406,13 +407,37 @@ export default { color: inherit; } - a { - text-decoration: none; - } - &.theme--dark{ - a { - color: white; - } - } + //.tree-item { + // width: 100%; + // padding: 8px 0; + // font-weight: 500; + // line-height: 1rem; + // font-size: 0.8rem; + //} + // + //.tree-item-link { + // display: block; + // width: 100%; + // text-decoration: none; + // color: inherit; + //} + // + //.tree-item-link a { + // display: block; + // width: 100%; + // padding: 8px 16px; + // margin: -8px 0; + // text-decoration: none; + // color: inherit; + //} + // + //a { + // text-decoration: none; + //} + //&.theme--dark{ + // a { + // color: white; + // } + //} }