summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-08 07:08:02 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-08 07:08:02 +0900
commitecd71ef5ff0409869a3cce81e12562896a0175a8 (patch)
tree9bccd407cfd95dbfc02a28db5f0ee80c40c4c9a5 /src
parentFix #1574 (diff)
downloadmisskey-ecd71ef5ff0409869a3cce81e12562896a0175a8.tar.gz
misskey-ecd71ef5ff0409869a3cce81e12562896a0175a8.tar.bz2
misskey-ecd71ef5ff0409869a3cce81e12562896a0175a8.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/pages/note.vue21
-rw-r--r--src/client/app/mobile/views/pages/note.vue4
2 files changed, 11 insertions, 14 deletions
diff --git a/src/client/app/desktop/views/pages/note.vue b/src/client/app/desktop/views/pages/note.vue
index e92b0ff105..8502dd3d58 100644
--- a/src/client/app/desktop/views/pages/note.vue
+++ b/src/client/app/desktop/views/pages/note.vue
@@ -1,9 +1,11 @@
<template>
<mk-ui>
<main v-if="!fetching">
- <a v-if="note.next" :href="note.next">%fa:angle-up%%i18n:@next%</a>
<mk-note-detail :note="note"/>
- <a v-if="note.prev" :href="note.prev">%fa:angle-down%%i18n:@prev%</a>
+ <footer>
+ <router-link v-if="note.next" :to="note.next">%fa:angle-left% %i18n:@next%</router-link>
+ <router-link v-if="note.prev" :to="note.prev">%i18n:@prev% %fa:angle-right%</router-link>
+ </footer>
</main>
</mk-ui>
</template>
@@ -48,17 +50,12 @@ main
padding 16px
text-align center
- > a
- display inline-block
+ > footer
+ margin-top 16px
- &:first-child
- margin-bottom 4px
-
- &:last-child
- margin-top 4px
-
- > [data-fa]
- margin-right 4px
+ > a
+ display inline-block
+ margin 0 16px
> .mk-note-detail
margin 0 auto
diff --git a/src/client/app/mobile/views/pages/note.vue b/src/client/app/mobile/views/pages/note.vue
index aff0d5aa52..146d89d22b 100644
--- a/src/client/app/mobile/views/pages/note.vue
+++ b/src/client/app/mobile/views/pages/note.vue
@@ -6,8 +6,8 @@
<mk-note-detail :note="note"/>
</div>
<footer>
- <a v-if="note.prev" :href="note.prev">%fa:angle-left% %i18n:@prev%</a>
- <a v-if="note.next" :href="note.next">%i18n:@next% %fa:angle-right%</a>
+ <router-link v-if="note.prev" :to="note.prev">%fa:angle-left% %i18n:@prev%</router-link>
+ <router-link v-if="note.next" :to="note.next">%i18n:@next% %fa:angle-right%</router-link>
</footer>
</main>
</mk-ui>