Skip to content

Commit

Permalink
Merge pull request #108 from PavlidisLab/mobile_improvements
Browse files Browse the repository at this point in the history
Mobile improvements
  • Loading branch information
oganm authored Jul 4, 2024
2 parents 8f1bcab + 8cffff5 commit baef36b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default {
showAboutDialog: false,
showDocumentationWindow: false,
query: null,
devMode: process.env.NODE_ENV !== "production"
devMode: this.$store.state.debug
};
},
methods: {
Expand Down
12 changes: 10 additions & 2 deletions src/components/SearchSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<div :class="debug ? '' : 'd-lg-none'">
<div style="margin-bottom: 59px;"></div>
<div class="d-flex align-center"
style="position: fixed; left: 0; bottom: 0; background: white; height: 59px; width: 100%; border-top: thin solid rgba(0, 0, 0, 0.12); padding: 0 8px;"
:style = "{position: 'fixed',left:'0px',bottom: 56*isMobile() + 'px' ,background: 'white',height: '59px',width: '100%', borderTop: 'thin solid rgba(0, 0, 0, 0.12)',padding:'0 8px'}"
>
<v-switch v-if="debug"
v-model="searchSettings.ignoreExcludedTerms"
Expand Down Expand Up @@ -140,7 +140,15 @@ export default {
this.searchSettings.annotations = [];
this.searchSettings.taxon = [];
this.searchSettings.query = undefined;
}
},
isMobile() {
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
return true
} else {
return false
}
}
},
watch: {
searchSettings: {
Expand Down

0 comments on commit baef36b

Please sign in to comment.