Browse Source

Avoid overlapping bottom navigator with metadata box on mobile screen

pull/341/head
Hironsan 5 years ago
parent
commit
76c5567673
5 changed files with 6 additions and 13 deletions
  1. 3
      frontend/components/containers/annotation/BottomNavigator.vue
  2. 5
      frontend/layouts/annotation.vue
  3. 3
      frontend/pages/projects/_id/sequence-labeling/index.vue
  4. 5
      frontend/pages/projects/_id/sequence-to-sequence/index.vue
  5. 3
      frontend/pages/projects/_id/text-classification/index.vue

3
frontend/components/containers/annotation/BottomNavigator.vue

@ -1,9 +1,8 @@
<template>
<v-bottom-navigation
app
absolute
hide-on-scroll
background-color="transparent"
class="elevation-0"
>
<v-btn @click="prevPage">
<span>Prev</span>

5
frontend/layouts/annotation.vue

@ -19,6 +19,7 @@
</v-navigation-drawer>
<nuxt />
<bottom-navigator class="d-flex d-sm-none" />
</v-app>
</template>
@ -26,11 +27,13 @@
import { mapActions, mapGetters } from 'vuex'
import TheSideBar from '~/components/organisms/layout/TheSideBar'
import TheHeader from '~/components/organisms/layout/TheHeader'
import BottomNavigator from '@/components/containers/annotation/BottomNavigator'
export default {
components: {
TheSideBar,
TheHeader
TheHeader,
BottomNavigator
},
data() {
return {

3
frontend/pages/projects/_id/sequence-labeling/index.vue

@ -15,7 +15,6 @@
<paginator />
</v-col>
</v-row>
<bottom-navigator class="d-flex d-sm-none" />
<v-row justify="center">
<v-col cols="12" md="9">
<v-card>
@ -43,7 +42,6 @@ import ApproveButton from '@/components/containers/annotation/ApproveButton'
import GuidelineButton from '@/components/containers/annotation/GuidelineButton'
import FilterButton from '@/components/containers/annotation/FilterButton'
import MetadataBox from '@/components/organisms/annotation/MetadataBox'
import BottomNavigator from '@/components/containers/annotation/BottomNavigator'
export default {
layout: 'annotation',
@ -52,7 +50,6 @@ export default {
components: {
ApproveButton,
BottomNavigator,
EntityItemBox,
FilterButton,
Paginator,

5
frontend/pages/projects/_id/sequence-to-sequence/index.vue

@ -13,7 +13,6 @@
<paginator />
</v-col>
</v-row>
<bottom-navigator class="d-flex d-sm-none" />
<v-row justify="center">
<v-col cols="12" md="9">
<seq2seq-container />
@ -35,7 +34,6 @@ import Seq2seqContainer from '~/components/containers/annotation/Seq2seqContaine
import Paginator from '~/components/containers/annotation/Paginator'
import GuidelineButton from '@/components/containers/annotation/GuidelineButton'
import MetadataBox from '@/components/organisms/annotation/MetadataBox'
import BottomNavigator from '@/components/containers/annotation/BottomNavigator'
export default {
layout: 'annotation',
@ -46,8 +44,7 @@ export default {
Seq2seqContainer,
Paginator,
GuidelineButton,
MetadataBox,
BottomNavigator
MetadataBox
},
computed: {

3
frontend/pages/projects/_id/text-classification/index.vue

@ -13,7 +13,6 @@
<paginator />
</v-col>
</v-row>
<bottom-navigator class="d-flex d-sm-none" />
<v-row justify="center">
<v-col cols="12" md="9">
<text-classification />
@ -35,7 +34,6 @@ import TextClassification from '~/components/containers/annotation/TextClassific
import Paginator from '~/components/containers/annotation/Paginator'
import GuidelineButton from '@/components/containers/annotation/GuidelineButton'
import MetadataBox from '@/components/organisms/annotation/MetadataBox'
import BottomNavigator from '@/components/containers/annotation/BottomNavigator'
export default {
layout: 'annotation',
@ -43,7 +41,6 @@ export default {
middleware: ['check-auth', 'auth'],
components: {
BottomNavigator,
TextClassification,
Paginator,
GuidelineButton,

Loading…
Cancel
Save