Skip to content
Snippets Groups Projects
Commit e9f7ed7d authored by Henrik Askjer's avatar Henrik Askjer
Browse files

use breakpoint.mobile

parent 9797a07d
No related branches found
No related tags found
No related merge requests found
...@@ -24,15 +24,15 @@ ...@@ -24,15 +24,15 @@
placeholder="Søk her" placeholder="Søk her"
ref="autocomplete" ref="autocomplete"
color="primary" color="primary"
:dense="$vuetify.breakpoint.smAndDown" :dense="$vuetify.breakpoint.mobile"
> >
<template v-slot:append> <template v-slot:append>
<v-divider vertical/> <v-divider vertical/>
<v-menu allowOverflow: true> <v-menu allowOverflow: true>
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }">
<v-btn min-width="0px" v-bind="attrs" v-on="on" plain depressed color = "primary" text><span v-if="$vuetify.breakpoint.mdAndUp"> <v-btn min-width="0px" v-bind="attrs" v-on="on" plain depressed color = "primary" text><span v-if="!$vuetify.breakpoint.mobile">
{{$t(`dicts.${$parent.lang}`)}} {{$t(`dicts.${$parent.lang}`)}}
</span><v-icon>expand_more</v-icon></v-btn> </span><span v-if="$vuetify.breakpoint.mobile">{{$parent.lang}}</span><v-icon>expand_more</v-icon></v-btn>
</template> </template>
<v-list> <v-list>
<v-list-item v-for="item in ['bm,nn','bm','nn'].map(l => {return {label: $t(`dicts.${l}`), tag: l}})" :key="item.tag" <v-list-item v-for="item in ['bm,nn','bm','nn'].map(l => {return {label: $t(`dicts.${l}`), tag: l}})" :key="item.tag"
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<v-dialog max-width="1200" width="1200" v-model="menuDialog" hide-overlay :fullscreen="$vuetify.breakpoint.mobile" <v-dialog max-width="1200" width="1200" v-model="menuDialog" hide-overlay :fullscreen="$vuetify.breakpoint.mobile"
:close-on-content-click="false" transition="dialog-top-transition"> :close-on-content-click="false" transition="dialog-top-transition">
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }">
<v-btn v-bind="attrs" v-on="on" min-width="0px" class = "search-field-button" plain depressed color = "primary" text><span v-if="$vuetify.breakpoint.mdAndUp"></span><v-icon>more_vert</v-icon></v-btn> <v-btn v-bind="attrs" v-on="on" min-width="0px" class = "search-field-button" plain depressed color = "primary" text><span v-if="!$vuetify.breakpoint.mobile"></span><v-icon>more_vert</v-icon></v-btn>
</template> </template>
<Menu @close="menuDialog=false"/> <Menu @close="menuDialog=false"/>
</v-dialog> </v-dialog>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<v-toolbar class = "top-bar" dense dark color="primary"> <v-toolbar class = "top-bar" dense dark color="primary">
<div class="beta" :title="release">{{version_label}}</div> <div class="beta" :title="release">{{version_label}}</div>
<v-spacer/> <v-spacer/>
<v-toolbar-items class="hidden-sm-and-down"> <v-toolbar-items v-if="!$vuetify.breakpoint.mobile">
<v-divider vertical/> <v-divider vertical/>
<v-btn text width="210" v-if="false" :class="$vuetify.breakpoint.name"><v-icon left>language</v-icon>Norsk (Bokmål)<v-icon right>expand_more</v-icon></v-btn> <v-btn text width="210" v-if="false" :class="$vuetify.breakpoint.name"><v-icon left>language</v-icon>Norsk (Bokmål)<v-icon right>expand_more</v-icon></v-btn>
<v-divider vertical/> <v-divider vertical/>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
:close-on-content-click="false" transition="dialog-top-transition"> :close-on-content-click="false" transition="dialog-top-transition">
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }">
<v-btn text v-bind="attrs" v-on="on"> <v-btn text v-bind="attrs" v-on="on">
<span v-if="$vuetify.breakpoint.mdAndUp">{{$t('menu.title')}}</span><v-icon :right="!$vuetify.breakpoint.mobile">menu</v-icon></v-btn> <span v-if="$vuetify.breakpoint.mobile">{{$t('menu.title')}}</span><v-icon :right="$vuetify.breakpoint.mobile">menu</v-icon></v-btn>
</template> </template>
<Menu @close="menuDialog=false"/> <Menu @close="menuDialog=false"/>
</v-dialog> </v-dialog>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment