summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-14 10:16:02 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-14 10:16:02 +0900
commitc7988fb6f5bc42bca92da97c91e555df0a2782db (patch)
tree55678b60e7a85df3ece4b098088dbaa845311d2c /src
parentFix #2901 (diff)
downloadmisskey-c7988fb6f5bc42bca92da97c91e555df0a2782db.tar.gz
misskey-c7988fb6f5bc42bca92da97c91e555df0a2782db.tar.bz2
misskey-c7988fb6f5bc42bca92da97c91e555df0a2782db.zip
:art:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/components/notes.vue4
-rw-r--r--src/client/app/desktop/views/components/notifications.vue4
-rw-r--r--src/client/app/desktop/views/pages/deck/deck.notes.vue10
-rw-r--r--src/client/app/desktop/views/pages/deck/deck.notifications.vue20
-rw-r--r--src/client/app/mobile/views/components/notes.vue4
-rw-r--r--src/client/app/mobile/views/components/notifications.vue4
6 files changed, 28 insertions, 18 deletions
diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue
index b43720d19b..219fd5db60 100644
--- a/src/client/app/desktop/views/components/notes.vue
+++ b/src/client/app/desktop/views/components/notes.vue
@@ -9,7 +9,7 @@
<button @click="resolveInitPromise">%i18n:@retry%</button>
</div>
- <div class="skeleton" v-if="fetching">
+ <div class="placeholder" v-if="fetching">
<template v-for="i in 10">
<mk-note-skeleton :key="i"/>
</template>
@@ -232,7 +232,7 @@ export default Vue.extend({
> *
transition transform .3s ease, opacity .3s ease
- > .skeleton
+ > .placeholder
padding 32px
opacity 0.3
diff --git a/src/client/app/desktop/views/components/notifications.vue b/src/client/app/desktop/views/components/notifications.vue
index 361ca5f1c8..9b807e69ee 100644
--- a/src/client/app/desktop/views/components/notifications.vue
+++ b/src/client/app/desktop/views/components/notifications.vue
@@ -1,6 +1,6 @@
<template>
<div class="mk-notifications">
- <div class="skeleton" v-if="fetching">
+ <div class="placeholder" v-if="fetching">
<template v-for="i in 10">
<mk-note-skeleton :key="i"/>
</template>
@@ -207,7 +207,7 @@ export default Vue.extend({
> *
transition transform .3s ease, opacity .3s ease
- > .skeleton
+ > .placeholder
padding 16px
opacity 0.3
diff --git a/src/client/app/desktop/views/pages/deck/deck.notes.vue b/src/client/app/desktop/views/pages/deck/deck.notes.vue
index 884be3a841..5898f5b05e 100644
--- a/src/client/app/desktop/views/pages/deck/deck.notes.vue
+++ b/src/client/app/desktop/views/pages/deck/deck.notes.vue
@@ -2,6 +2,12 @@
<div class="eamppglmnmimdhrlzhplwpvyeaqmmhxu">
<slot name="empty" v-if="notes.length == 0 && !fetching && requestInitPromise == null"></slot>
+ <div class="placeholder" v-if="fetching">
+ <template v-for="i in 10">
+ <mk-note-skeleton :key="i"/>
+ </template>
+ </div>
+
<div v-if="!fetching && requestInitPromise != null">
<p>%i18n:@error%</p>
<button @click="resolveInitPromise">%i18n:@retry%</button>
@@ -205,6 +211,10 @@ export default Vue.extend({
> *
transition transform .3s ease, opacity .3s ease
+ > .placeholder
+ padding 16px
+ opacity 0.3
+
> .notes
> .date
display block
diff --git a/src/client/app/desktop/views/pages/deck/deck.notifications.vue b/src/client/app/desktop/views/pages/deck/deck.notifications.vue
index b68757b73f..0decaca725 100644
--- a/src/client/app/desktop/views/pages/deck/deck.notifications.vue
+++ b/src/client/app/desktop/views/pages/deck/deck.notifications.vue
@@ -1,5 +1,11 @@
<template>
<div class="oxynyeqmfvracxnglgulyqfgqxnxmehl">
+ <div class="placeholder" v-if="fetching">
+ <template v-for="i in 10">
+ <mk-note-skeleton :key="i"/>
+ </template>
+ </div>
+
<!-- トランジションを有効にするとなぜかメモリリークする -->
<component :is="!$store.state.device.reduceMotion ? 'transition-group' : 'div'" name="mk-notifications" class="transition notifications">
<template v-for="(notification, i) in _notifications">
@@ -14,7 +20,6 @@
<template v-if="fetchingMoreNotifications">%fa:spinner .pulse .fw%</template>{{ fetchingMoreNotifications ? '%i18n:common.loading%' : '%i18n:@more%' }}
</button>
<p class="empty" v-if="notifications.length == 0 && !fetching">%i18n:@empty%</p>
- <p class="loading" v-if="fetching">%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p>
</div>
</template>
@@ -161,6 +166,10 @@ export default Vue.extend({
> *
transition transform .3s ease, opacity .3s ease
+ > .placeholder
+ padding 16px
+ opacity 0.3
+
> .notifications
> .notification:not(:last-child)
@@ -207,13 +216,4 @@ export default Vue.extend({
text-align center
color #aaa
- > .loading
- margin 0
- padding 16px
- text-align center
- color #aaa
-
- > [data-fa]
- margin-right 4px
-
</style>
diff --git a/src/client/app/mobile/views/components/notes.vue b/src/client/app/mobile/views/components/notes.vue
index 62ab8c442a..055b731f3c 100644
--- a/src/client/app/mobile/views/components/notes.vue
+++ b/src/client/app/mobile/views/components/notes.vue
@@ -4,7 +4,7 @@
<slot name="empty" v-if="notes.length == 0 && !fetching && requestInitPromise == null"></slot>
- <div class="skeleton" v-if="fetching">
+ <div class="placeholder" v-if="fetching">
<template v-for="i in 10">
<mk-note-skeleton :key="i"/>
</template>
@@ -253,7 +253,7 @@ export default Vue.extend({
[data-fa]
margin-right 8px
- > .skeleton
+ > .placeholder
padding 16px
opacity 0.3
diff --git a/src/client/app/mobile/views/components/notifications.vue b/src/client/app/mobile/views/components/notifications.vue
index fb8a5c1061..f33808a3c1 100644
--- a/src/client/app/mobile/views/components/notifications.vue
+++ b/src/client/app/mobile/views/components/notifications.vue
@@ -1,6 +1,6 @@
<template>
<div class="mk-notifications">
- <div class="skeleton" v-if="fetching">
+ <div class="placeholder" v-if="fetching">
<template v-for="i in 10">
<mk-note-skeleton :key="i"/>
</template>
@@ -184,7 +184,7 @@ export default Vue.extend({
text-align center
color #aaa
- > .skeleton
+ > .placeholder
padding 16px
opacity 0.3