diff --git a/src/client/components/date-separated-list.vue b/src/client/components/date-separated-list.vue index 833cdfc898..012ed42385 100644 --- a/src/client/components/date-separated-list.vue +++ b/src/client/components/date-separated-list.vue @@ -18,7 +18,12 @@ export default defineComponent({ type: Boolean, required: false, default: false - } + }, + noGap: { + type: Boolean, + required: false, + default: false + }, }, methods: { @@ -37,18 +42,16 @@ export default defineComponent({ }, render() { - const noGap = [...document.querySelectorAll('._noGap_')].some(el => el.contains(this.$parent.$el)); - if (this.items.length === 0) return; return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? { - class: 'sqadhkmv' + (noGap ? ' _block' : ''), + class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), name: 'list', tag: 'div', 'data-direction': this.direction, 'data-reversed': this.reversed ? 'true' : 'false', } : { - class: 'sqadhkmv', + class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), }, this.items.map((item, i) => { const el = this.$slots.default({ item: item @@ -154,17 +157,17 @@ export default defineComponent({ } } } -} -._noGap_ .sqadhkmv { - > * { - margin: 0 !important; - border: none; - border-radius: 0; - box-shadow: none; + &.noGap { + > * { + margin: 0 !important; + border: none; + border-radius: 0; + box-shadow: none; - &:not(:last-child) { - border-bottom: solid 0.5px var(--divider); + &:not(:last-child) { + border-bottom: solid 0.5px var(--divider); + } } } } diff --git a/src/client/components/form/suspense.vue b/src/client/components/form/suspense.vue index e22b09ada4..562fe23e06 100644 --- a/src/client/components/form/suspense.vue +++ b/src/client/components/form/suspense.vue @@ -80,7 +80,6 @@ export default defineComponent({ .fade-leave-active { transition: opacity 0.125s ease; } - .fade-enter-from, .fade-leave-to { opacity: 0; diff --git a/src/client/components/global/loading.vue b/src/client/components/global/loading.vue index 17d71b5c7b..9b810f0a16 100644 --- a/src/client/components/global/loading.vue +++ b/src/client/components/global/loading.vue @@ -6,7 +6,6 @@ + + diff --git a/src/client/components/notifications.vue b/src/client/components/notifications.vue index 12d2d2cbd2..1b789093ef 100644 --- a/src/client/components/notifications.vue +++ b/src/client/components/notifications.vue @@ -1,21 +1,23 @@ - + - - - - + - - {{ $ts.loadMore }} - - + {{ $ts.noNotifications }} - {{ $ts.noNotifications }} + + + + + - - + + {{ $ts.loadMore }} + + + + diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue index faa3984638..753eba2ba1 100644 --- a/src/client/components/timeline.vue +++ b/src/client/components/timeline.vue @@ -1,5 +1,5 @@ - $emit('after', e)" @queue="$emit('queue', $event)"/> + $emit('after', e)" @queue="$emit('queue', $event)"/>
{{ $ts.noNotifications }}