mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
ユーザーが存在しない場合の表示を追加
This commit is contained in:
parent
1af755ac27
commit
a5d37c02c6
@ -232,6 +232,9 @@ common/views/pages/explore.vue:
|
||||
popular-tags: "人気のタグ"
|
||||
federated: "連合"
|
||||
|
||||
common/views/components/user-list.vue:
|
||||
no-users: "ユーザーがいません"
|
||||
|
||||
common/views/components/games/reversi/reversi.vue:
|
||||
matching:
|
||||
waiting-for: "{}を待っています"
|
||||
|
@ -5,6 +5,9 @@
|
||||
<mk-error v-if="!fetching && !inited" @retry="init()"/>
|
||||
|
||||
<div class="efvhhmdq" v-size="[{ lt: 500, class: 'narrow' }]">
|
||||
<div class="no-users" v-if="inited && us.length == 0">
|
||||
<p>{{ $t('no-users') }}</p>
|
||||
</div>
|
||||
<div class="user" v-for="user in us">
|
||||
<mk-avatar class="avatar" :user="user"/>
|
||||
<div class="body">
|
||||
@ -26,8 +29,11 @@
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import i18n from '../../../i18n';
|
||||
|
||||
export default Vue.extend({
|
||||
i18n: i18n('common/views/components/user-list.vue'),
|
||||
|
||||
props: {
|
||||
makePromise: {
|
||||
required: true
|
||||
@ -92,6 +98,10 @@ export default Vue.extend({
|
||||
> .user > .body > .description
|
||||
display none
|
||||
|
||||
> .no-users
|
||||
text-align center
|
||||
color var(--text)
|
||||
|
||||
> .user
|
||||
display flex
|
||||
padding 16px
|
||||
|
Loading…
Reference in New Issue
Block a user