summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-17 06:43:52 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-17 06:43:52 +0900
commit2fcf6fb0fdc3bce9d489fd6ed177b41b89b5179e (patch)
treee32b95c7afda1cc3d1e64ea37b418aec0ff8497a /src/client
parent:art: (diff)
downloadsharkey-2fcf6fb0fdc3bce9d489fd6ed177b41b89b5179e.tar.gz
sharkey-2fcf6fb0fdc3bce9d489fd6ed177b41b89b5179e.tar.bz2
sharkey-2fcf6fb0fdc3bce9d489fd6ed177b41b89b5179e.zip
UI tweak
Diffstat (limited to 'src/client')
-rw-r--r--src/client/components/dialog.vue4
-rw-r--r--src/client/pages/note.vue2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/components/dialog.vue b/src/client/components/dialog.vue
index 5311611575..ed740c1d8c 100644
--- a/src/client/components/dialog.vue
+++ b/src/client/components/dialog.vue
@@ -1,9 +1,9 @@
<template>
<div class="mk-dialog" :class="{ iconOnly }">
- <transition name="bg-fade" appear>
+ <transition :name="$store.state.device.animation ? 'bg-fade' : ''" appear>
<div class="bg" ref="bg" @click="onBgClick" v-if="show"></div>
</transition>
- <transition name="dialog" appear @after-leave="() => { destroyDom(); }">
+ <transition :name="$store.state.device.animation ? 'dialog' : ''" appear @after-leave="() => { destroyDom(); }">
<div class="main" ref="main" v-if="show">
<template v-if="type == 'signin'">
<mk-signin/>
diff --git a/src/client/pages/note.vue b/src/client/pages/note.vue
index 73a0bb37ba..30741bab55 100644
--- a/src/client/pages/note.vue
+++ b/src/client/pages/note.vue
@@ -3,7 +3,7 @@
<portal to="avatar" v-if="note"><mk-avatar class="avatar" :user="note.user" :disable-preview="true"/></portal>
<portal to="title" v-if="note">{{ $t('noteOf', { user: note.user.name }) }}</portal>
- <transition name="zoom" mode="out-in">
+ <transition :name="$store.state.device.animation ? 'zoom' : ''" mode="out-in">
<div v-if="note">
<mk-button v-if="hasNext && !showNext" @click="showNext = true" primary style="margin: 0 auto var(--margin) auto;"><fa :icon="faChevronUp"/></mk-button>
<x-notes v-if="showNext" ref="next" :pagination="next"/>