Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
fix kitten position
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya101master committed Sep 1, 2022
1 parent c45f38e commit eb92879
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/AppMenu.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="container">
<div class="container" v-bind:style="{ paddingBottom : (isMobile() ? '56px' : '0px')}">
<div class="category" v-for="category in buttons" :key="category.name">
<grid-view v-if="(category.type == 'grid3')" :info="category" />
<list-view v-else-if="(category.type == 'list')" :info="category" />
Expand Down Expand Up @@ -48,12 +48,25 @@ export default {
return `${process.env.VUE_APP_CDN}/app/menu_icons/kitty.svg`;
},
},
methods:{
isMobile() {
if (
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
)
) {
return true;
} else {
return false;
}
},
}
};
</script>

<style scoped>
.container{
padding: 66px 10px 56px;
padding: 66px 10px;
display: flex;
flex-direction: column;
gap: 10px;
Expand Down

0 comments on commit eb92879

Please sign in to comment.