11<template >
22<div >
3- <v-navigation-drawer v-if =" !$LOCAL" stateless app permanent clipped :mini-variant =" mini" :expand-on-hover =" false" ref =" drawer" >
3+ <v-navigation-drawer v-if =" !$LOCAL"
4+ app
5+ clipped
6+ v-model =" opened"
7+ :permanent =" $vuetify.breakpoint.mdAndUp"
8+ :mini-variant =" $vuetify.breakpoint.smAndDown ? false : mini"
9+ :temporary =" $vuetify.breakpoint.smAndDown"
10+ :expand-on-hover =" false"
11+ :bottom =" $vuetify.breakpoint.smAndDown"
12+ ref =" drawer"
13+ >
414 <v-list v-if =" !$LOCAL" >
515 <v-list-item to =" /search" >
616 <v-list-item-action >
4555 </v-list-item-content >
4656 </template >
4757
48- <template v-if =" ! this . mini " >
58+ <template v-if =" ! mini " >
4959 <v-list-item
5060 @click =" $ELECTRON ? electronDownload($route.params.ticket) : null"
5161 :href =" $ELECTRON ? null : url('api/result/download/' + $route.params.ticket)"
8494 <v-list-item-title >Downloads</v-list-item-title >
8595 </v-list-item-content >
8696 </template >
87- <template v-if =" ! this . mini " >
97+ <template v-if =" ! mini " >
8898 <v-list-item
8999 @click =" downloadMSA"
90100 style =" padding-left : 16px ;"
122132 <v-list-item-title >Downloads</v-list-item-title >
123133 </v-list-item-content >
124134 </template >
125- <template v-if =" ! this . mini " >
135+ <template v-if =" ! mini " >
126136 <v-list-item
127137 @click =" $ELECTRON ? electronDownload($route.params.ticket) : null"
128138 :href =" $ELECTRON ? null : url('api/result/folddisco/download/' + $route.params.ticket)"
169179 </v-list >
170180</v-navigation-drawer >
171181<v-app-bar v-on:dblclick.native =" electronHandleTitleBarDoubleClick()" app :height =" $ELECTRON ? '72px' : '48px'" fixed clipped-left :class =" ['ml-0', 'pl-3', $ELECTRON ? 'pt-2' : null]" :style =" {'-webkit-app-region': $ELECTRON ? 'drag' : null, '-webkit-user-select': $ELECTRON ? 'none' : null}" >
172- <v-app-bar-nav-icon v-if =" !$LOCAL" :input- value =" !mini ? 'activated' : undefined " @click.stop =" toggleMini" ></v-app-bar-nav-icon >
182+ <v-app-bar-nav-icon v-if =" !$LOCAL" :value =" opened " @click.stop =" toggleMini" ></v-app-bar-nav-icon >
173183 <v-app-bar-title >
174184 <router-link v-if =" !$LOCAL" :to =" activeTool ? '/' + activeTool : '/'" style =" color : inherit ; text-decoration : none " >{{ appName }}</router-link >
175185 <span v-if =" $LOCAL" >{{ appName }}</span >
@@ -221,9 +231,10 @@ function getLinks(strings, prefix) {
221231export default {
222232 components : { History , },
223233 data : () => ({
224- mini: true ,
225234 expanded: false ,
226235 activeTool: ' ' ,
236+ opened: false ,
237+ mini: true ,
227238 }),
228239 created () {
229240 this .$root .$on (' multi' , this .shouldExpand );
@@ -242,7 +253,12 @@ export default {
242253 },
243254 $route : function () {
244255 this .updateTool ();
245- }
256+ },
257+ isMobile : function (v ) {
258+ if (v) {
259+ this .opened = false
260+ }
261+ },
246262 },
247263 computed: {
248264 appName () {
@@ -267,6 +283,9 @@ export default {
267283 }
268284 return toolLinks;
269285 },
286+ isMobile () {
287+ return this .$vuetify .breakpoint .smAndDown
288+ }
270289 },
271290 methods: {
272291 updateTool () {
@@ -293,13 +312,18 @@ export default {
293312 },
294313 shouldExpand (expand ) {
295314 if (expand)
296- this .mini = ! expand;
315+ this .opened = expand;
316+ this .mini = false
297317 },
298318 toggleMini () {
299319 if (! this .mini ) {
300320 this .$refs .history .drawer = false
301321 }
302- this .mini = ! this .mini ;
322+ if (this .$vuetify .breakpoint .smAndDown ) {
323+ this .opened = ! this .opened
324+ } else {
325+ this .mini = ! this .mini ;
326+ }
303327 },
304328 electronHandleTitleBarDoubleClick () {
305329 this .handleTitleBarDoubleClick ();
@@ -344,4 +368,7 @@ export default {
344368 background-color : #212121 ;
345369 border-color : #212121 ;
346370}
371+ .v-navigation-drawer--temporary {
372+ z-index : 99999 ;
373+ }
347374 </style >
0 commit comments