Browse Source

Всё равно проблема

pull/7619/head
Ruslan Semak 2 months ago
parent
commit
00c0b6cc1a
1 changed files with 40 additions and 15 deletions
  1. 55
      client/themes/default/components/nav-sidebar.vue

55
client/themes/default/components/nav-sidebar.vue

@ -14,7 +14,7 @@
depressed depressed
:color='$vuetify.theme.dark ? `grey darken-4` : `blue darken-2`' :color='$vuetify.theme.dark ? `grey darken-4` : `blue darken-2`'
style='flex: 1 1 100%;' style='flex: 1 1 100%;'
@click='switchMode(`browse`)'
@click='switchMode(`tree`)'
) )
v-icon(left) mdi-file-tree v-icon(left) mdi-file-tree
.body-2.text-none {{$t('common:sidebar.browse')}} .body-2.text-none {{$t('common:sidebar.browse')}}
@ -26,7 +26,7 @@
@click='switchMode(`tree`)' @click='switchMode(`tree`)'
) )
v-icon(left) mdi-file-tree v-icon(left) mdi-file-tree
.body-2.text-none {{$t('common:sidebar.tree')}}
.body-2.text-none {{'Обзор'}}
v-btn.ml-3( v-btn.ml-3(
v-else-if='currentMode === `tree`' v-else-if='currentMode === `tree`'
depressed depressed
@ -361,11 +361,12 @@ export default {
mounted () { mounted () {
this.currentParent.title = `/ ${this.$t('common:sidebar.root')}` this.currentParent.title = `/ ${this.$t('common:sidebar.root')}`
if (this.navMode === 'TREE') { if (this.navMode === 'TREE') {
this.currentMode = 'browse'
} else if (this.navMode === 'STATIC') {
this.currentMode = 'custom'
} else if (this.navMode === 'NEWTREE') {
this.currentMode = 'tree' this.currentMode = 'tree'
}
if (this.navMode === 'STATIC') {
this.currentMode = 'custom'
// } else if (this.navMode === 'NEWTREE') {
// this.currentMode = 'tree'
} else { } else {
this.currentMode = window.localStorage.getItem('navPref') || 'custom' this.currentMode = window.localStorage.getItem('navPref') || 'custom'
} }
@ -387,7 +388,7 @@ export default {
padding: 8px 0; padding: 8px 0;
font-weight: 500; font-weight: 500;
line-height: 1rem; line-height: 1rem;
font-size: 0.8rem;
font-size: 1rem;
} }
.tree-item-link { .tree-item-link {
@ -406,13 +407,37 @@ export default {
color: inherit; 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;
// }
//}
} }
</style> </style>
Loading…
Cancel
Save