Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed May 4, 2021
2 parents cdef5cd + 1a8f410 commit b6c9ab0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/client/components/date-separated-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ export default defineComponent({

<style lang="scss">
.sqadhkmv {
> *:empty {
display: none;
}
> *:not(:last-child) {
margin-bottom: var(--margin);
}
Expand Down
7 changes: 4 additions & 3 deletions src/client/components/global/ad.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</div>
</div>
</div>
<div v-else></div>
</template>

<script lang="ts">
Expand All @@ -32,7 +33,7 @@ export default defineComponent({
type: String,
required: true
},
ad: {
specify: {
type: Object,
required: false
},
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/client/pages/instance/ads.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b6c9ab0

Please sign in to comment.