diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-03-20 18:11:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-03-20 18:11:39 +0900 |
| commit | f31c94e2ea43fa36d2a0fc8742e0a52a0025b643 (patch) | |
| tree | e48e372ddaac8514cada36f165bf921f313971a4 /src/client/components/notifications.vue | |
| parent | Fix bug (diff) | |
| download | sharkey-f31c94e2ea43fa36d2a0fc8742e0a52a0025b643.tar.gz sharkey-f31c94e2ea43fa36d2a0fc8742e0a52a0025b643.tar.bz2 sharkey-f31c94e2ea43fa36d2a0fc8742e0a52a0025b643.zip | |
wip
Diffstat (limited to 'src/client/components/notifications.vue')
| -rw-r--r-- | src/client/components/notifications.vue | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/src/client/components/notifications.vue b/src/client/components/notifications.vue index ff6d63821f..f090dc6bc4 100644 --- a/src/client/components/notifications.vue +++ b/src/client/components/notifications.vue @@ -1,8 +1,8 @@ <template> -<div class="mk-notifications" :class="{ page }"> +<div class="mk-notifications"> <x-list class="notifications" :items="items" v-slot="{ item: notification }"> <x-note v-if="['reply', 'quote', 'mention'].includes(notification.type)" :note="notification.note" :key="notification.id"/> - <x-notification v-else :notification="notification" :with-time="true" :full="true" class="notification" :class="{ _panel: page }" :key="notification.id"/> + <x-notification v-else :notification="notification" :with-time="true" :full="true" class="_panel notification" :key="notification.id"/> </x-list> <button class="more _button" v-if="more" @click="fetchMore" :disabled="moreFetching"> @@ -43,11 +43,6 @@ export default Vue.extend({ type: String, required: false }, - page: { - type: Boolean, - required: false, - default: false - } }, data() { @@ -94,25 +89,10 @@ export default Vue.extend({ <style lang="scss" scoped> .mk-notifications { - &.page { - > .notifications { - > ::v-deep * { - margin-bottom: var(--margin); - } - } - } - - &:not(.page) { - > .notifications { - > ::v-deep * { - margin-bottom: 8px; - } - - > .notification { - background: var(--panel); - border-radius: 6px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); - } + > .notifications { + > ::v-deep * { + //margin-bottom: var(--margin); + margin-bottom: 0; } } |