diff --git a/package.json b/package.json index 2a4c9d9013923f7cc26412f2c9d7f99900d0ecfe..e0f3405d275320c2a22718ae13be7e1eae5d7add 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo <syuilotan@yahoo.co.jp>", - "version": "12.80.0", + "version": "12.80.1", "codename": "indigo", "repository": { "type": "git", diff --git a/src/client/components/date-separated-list.vue b/src/client/components/date-separated-list.vue index d458a0eeb8303a2384323edb8068e0a9702a1e73..c7ca67582ab832c8749192d4c6475d801976e893 100644 --- a/src/client/components/date-separated-list.vue +++ b/src/client/components/date-separated-list.vue @@ -105,6 +105,10 @@ export default defineComponent({ <style lang="scss"> .sqadhkmv { + > *:empty { + display: none; + } + > *:not(:last-child) { margin-bottom: var(--margin); } diff --git a/src/client/components/global/ad.vue b/src/client/components/global/ad.vue index 00592e4ca24e546379a2e959fa4e65bd5b265d44..53e6e8b8bbd3bd96abae9399e8c553bcf89bc193 100644 --- a/src/client/components/global/ad.vue +++ b/src/client/components/global/ad.vue @@ -14,6 +14,7 @@ </div> </div> </div> +<div v-else></div> </template> <script lang="ts"> @@ -32,7 +33,7 @@ export default defineComponent({ type: String, required: true }, - ad: { + specify: { type: Object, required: false }, @@ -46,8 +47,8 @@ export default defineComponent({ let ad = null; - if (props.ad) { - ad = props.ad; + if (props.specify) { + ad = props.specify; } else { let ads = instance.ads.filter(ad => ad.place === props.prefer); diff --git a/src/client/pages/instance/ads.vue b/src/client/pages/instance/ads.vue index 4297e56c37c2f827b2804b2318acebd7b2020047..ee7114f91c78ff7826141faa67f201b5e0d80abd 100644 --- a/src/client/pages/instance/ads.vue +++ b/src/client/pages/instance/ads.vue @@ -3,7 +3,7 @@ <MkButton @click="add()" primary style="margin: 0 auto 16px auto;"><i class="fas fa-plus"></i> {{ $ts.add }}</MkButton> <section class="_card _gap ads" v-for="ad in ads"> <div class="_content ad"> - <MkAd v-if="ad.url" :ad="ad"/> + <MkAd v-if="ad.url" :specify="ad"/> <MkInput v-model:value="ad.url" type="url"> <span>URL</span> </MkInput>