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> <template>
<v-bottom-navigation <v-bottom-navigation
app
absolute absolute
hide-on-scroll hide-on-scroll
background-color="transparent"
class="elevation-0"
> >
<v-btn @click="prevPage"> <v-btn @click="prevPage">
<span>Prev</span> <span>Prev</span>

5
frontend/layouts/annotation.vue

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

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

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

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

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

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

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

Loading…
Cancel
Save