2023-07-27 14:31:52 +09:00
|
|
|
<!--
|
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-01-30 04:37:25 +09:00
|
|
|
<template>
|
2022-06-20 17:38:49 +09:00
|
|
|
<div>
|
|
|
|
<MkStickyContainer>
|
2023-01-13 14:58:27 +09:00
|
|
|
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
|
2023-05-18 18:45:49 +09:00
|
|
|
<MkSpacer :contentMax="900">
|
2022-06-20 17:38:49 +09:00
|
|
|
<div class="ogwlenmc">
|
|
|
|
<div v-if="tab === 'local'" class="local">
|
|
|
|
<MkInput v-model="query" :debounce="true" type="search">
|
2023-10-01 04:53:52 +09:00
|
|
|
<template #prefix><i class="ph-magnifying-glass ph-bold ph-lg"></i></template>
|
2022-07-20 22:24:26 +09:00
|
|
|
<template #label>{{ i18n.ts.search }}</template>
|
2022-06-20 17:38:49 +09:00
|
|
|
</MkInput>
|
|
|
|
<MkSwitch v-model="selectMode" style="margin: 8px 0;">
|
|
|
|
<template #label>Select mode</template>
|
|
|
|
</MkSwitch>
|
2023-01-06 09:41:14 +09:00
|
|
|
<div v-if="selectMode" class="_buttons">
|
2022-06-20 17:38:49 +09:00
|
|
|
<MkButton inline @click="selectAll">Select all</MkButton>
|
|
|
|
<MkButton inline @click="setCategoryBulk">Set category</MkButton>
|
2023-04-19 08:25:24 +09:00
|
|
|
<MkButton inline @click="setTagBulk">Set tag</MkButton>
|
2022-06-20 17:38:49 +09:00
|
|
|
<MkButton inline @click="addTagBulk">Add tag</MkButton>
|
|
|
|
<MkButton inline @click="removeTagBulk">Remove tag</MkButton>
|
2023-07-12 16:31:48 +09:00
|
|
|
<MkButton inline @click="setLicenseBulk">Set License</MkButton>
|
2022-06-20 17:38:49 +09:00
|
|
|
<MkButton inline danger @click="delBulk">Delete</MkButton>
|
2021-12-10 21:41:37 +09:00
|
|
|
</div>
|
2022-06-20 17:38:49 +09:00
|
|
|
<MkPagination ref="emojisPaginationComponent" :pagination="pagination">
|
2022-07-20 22:24:26 +09:00
|
|
|
<template #empty><span>{{ i18n.ts.noCustomEmojis }}</span></template>
|
2022-06-20 17:38:49 +09:00
|
|
|
<template #default="{items}">
|
|
|
|
<div class="ldhfsamy">
|
|
|
|
<button v-for="emoji in items" :key="emoji.id" class="emoji _panel _button" :class="{ selected: selectedEmojis.includes(emoji.id) }" @click="selectMode ? toggleSelect(emoji) : edit(emoji)">
|
2022-12-30 11:10:38 +09:00
|
|
|
<img :src="`/emoji/${emoji.name}.webp`" class="img" :alt="emoji.name"/>
|
2022-06-20 17:38:49 +09:00
|
|
|
<div class="body">
|
|
|
|
<div class="name _monospace">{{ emoji.name }}</div>
|
|
|
|
<div class="info">{{ emoji.category }}</div>
|
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</MkPagination>
|
|
|
|
</div>
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
<div v-else-if="tab === 'remote'" class="remote">
|
|
|
|
<FormSplit>
|
|
|
|
<MkInput v-model="queryRemote" :debounce="true" type="search">
|
2023-10-01 04:53:52 +09:00
|
|
|
<template #prefix><i class="ph-magnifying-glass ph-bold ph-lg"></i></template>
|
2022-07-20 22:24:26 +09:00
|
|
|
<template #label>{{ i18n.ts.search }}</template>
|
2022-06-20 17:38:49 +09:00
|
|
|
</MkInput>
|
|
|
|
<MkInput v-model="host" :debounce="true">
|
2022-07-20 22:24:26 +09:00
|
|
|
<template #label>{{ i18n.ts.host }}</template>
|
2022-06-20 17:38:49 +09:00
|
|
|
</MkInput>
|
|
|
|
</FormSplit>
|
|
|
|
<MkPagination :pagination="remotePagination">
|
2022-07-20 22:24:26 +09:00
|
|
|
<template #empty><span>{{ i18n.ts.noCustomEmojis }}</span></template>
|
2022-06-20 17:38:49 +09:00
|
|
|
<template #default="{items}">
|
|
|
|
<div class="ldhfsamy">
|
|
|
|
<div v-for="emoji in items" :key="emoji.id" class="emoji _panel _button" @click="remoteMenu(emoji, $event)">
|
2022-12-30 11:10:38 +09:00
|
|
|
<img :src="`/emoji/${emoji.name}@${emoji.host}.webp`" class="img" :alt="emoji.name"/>
|
2022-06-20 17:38:49 +09:00
|
|
|
<div class="body">
|
|
|
|
<div class="name _monospace">{{ emoji.name }}</div>
|
|
|
|
<div class="info">{{ emoji.host }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-10 21:41:37 +09:00
|
|
|
</div>
|
2022-06-20 17:38:49 +09:00
|
|
|
</template>
|
|
|
|
</MkPagination>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</MkSpacer>
|
|
|
|
</MkStickyContainer>
|
|
|
|
</div>
|
2020-01-30 04:37:25 +09:00
|
|
|
</template>
|
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
<script lang="ts" setup>
|
2023-02-16 23:09:41 +09:00
|
|
|
import { computed, defineAsyncComponent, ref, shallowRef } from 'vue';
|
2022-09-06 18:21:49 +09:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2023-01-07 15:09:46 +09:00
|
|
|
import MkInput from '@/components/MkInput.vue';
|
2022-09-06 18:21:49 +09:00
|
|
|
import MkPagination from '@/components/MkPagination.vue';
|
2023-01-07 14:59:54 +09:00
|
|
|
import MkSwitch from '@/components/MkSwitch.vue';
|
2021-12-30 21:47:48 +09:00
|
|
|
import FormSplit from '@/components/form/split.vue';
|
2023-09-19 16:37:43 +09:00
|
|
|
import { selectFile, selectFiles } from '@/scripts/select-file.js';
|
|
|
|
import * as os from '@/os.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2023-01-03 13:37:32 +09:00
|
|
|
const emojisPaginationComponent = shallowRef<InstanceType<typeof MkPagination>>();
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
const tab = ref('local');
|
|
|
|
const query = ref(null);
|
|
|
|
const queryRemote = ref(null);
|
|
|
|
const host = ref(null);
|
|
|
|
const selectMode = ref(false);
|
|
|
|
const selectedEmojis = ref<string[]>([]);
|
2021-04-22 22:29:33 +09:00
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
const pagination = {
|
2022-01-13 02:26:10 +09:00
|
|
|
endpoint: 'admin/emoji/list' as const,
|
2022-01-13 00:47:05 +09:00
|
|
|
limit: 30,
|
|
|
|
params: computed(() => ({
|
|
|
|
query: (query.value && query.value !== '') ? query.value : null,
|
|
|
|
})),
|
|
|
|
};
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
const remotePagination = {
|
2022-01-13 02:26:10 +09:00
|
|
|
endpoint: 'admin/emoji/list-remote' as const,
|
2022-01-13 00:47:05 +09:00
|
|
|
limit: 30,
|
|
|
|
params: computed(() => ({
|
|
|
|
query: (queryRemote.value && queryRemote.value !== '') ? queryRemote.value : null,
|
|
|
|
host: (host.value && host.value !== '') ? host.value : null,
|
|
|
|
})),
|
|
|
|
};
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
const selectAll = () => {
|
|
|
|
if (selectedEmojis.value.length > 0) {
|
|
|
|
selectedEmojis.value = [];
|
|
|
|
} else {
|
2023-07-26 16:51:53 +09:00
|
|
|
selectedEmojis.value = Array.from(emojisPaginationComponent.value.items.values(), item => item.id);
|
2022-01-13 00:47:05 +09:00
|
|
|
}
|
|
|
|
};
|
2020-02-14 01:09:39 +09:00
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
const toggleSelect = (emoji) => {
|
|
|
|
if (selectedEmojis.value.includes(emoji.id)) {
|
|
|
|
selectedEmojis.value = selectedEmojis.value.filter(x => x !== emoji.id);
|
|
|
|
} else {
|
|
|
|
selectedEmojis.value.push(emoji.id);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const add = async (ev: MouseEvent) => {
|
2023-05-18 18:45:49 +09:00
|
|
|
os.popup(defineAsyncComponent(() => import('./emoji-edit-dialog.vue')), {
|
|
|
|
}, {
|
|
|
|
done: result => {
|
|
|
|
if (result.created) {
|
|
|
|
emojisPaginationComponent.value.prepend(result.created);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}, 'closed');
|
2022-01-13 00:47:05 +09:00
|
|
|
};
|
|
|
|
|
|
|
|
const edit = (emoji) => {
|
2022-05-01 22:51:07 +09:00
|
|
|
os.popup(defineAsyncComponent(() => import('./emoji-edit-dialog.vue')), {
|
2022-06-20 17:38:49 +09:00
|
|
|
emoji: emoji,
|
2022-01-13 00:47:05 +09:00
|
|
|
}, {
|
|
|
|
done: result => {
|
|
|
|
if (result.updated) {
|
2022-05-15 22:20:01 +09:00
|
|
|
emojisPaginationComponent.value.updateItem(result.updated.id, (oldEmoji: any) => ({
|
|
|
|
...oldEmoji,
|
2022-06-20 17:38:49 +09:00
|
|
|
...result.updated,
|
2022-05-15 22:20:01 +09:00
|
|
|
}));
|
2022-01-13 00:47:05 +09:00
|
|
|
} else if (result.deleted) {
|
2023-07-05 00:59:37 +09:00
|
|
|
emojisPaginationComponent.value.removeItem(emoji.id);
|
2022-01-13 00:47:05 +09:00
|
|
|
}
|
2021-12-10 21:41:37 +09:00
|
|
|
},
|
2022-01-13 00:47:05 +09:00
|
|
|
}, 'closed');
|
|
|
|
};
|
2021-12-10 21:41:37 +09:00
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
const im = (emoji) => {
|
|
|
|
os.apiWithDialog('admin/emoji/copy', {
|
|
|
|
emojiId: emoji.id,
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
const remoteMenu = (emoji, ev: MouseEvent) => {
|
|
|
|
os.popupMenu([{
|
|
|
|
type: 'label',
|
|
|
|
text: ':' + emoji.name + ':',
|
2023-09-22 07:00:12 +09:00
|
|
|
},
|
|
|
|
{
|
2022-01-28 11:39:49 +09:00
|
|
|
text: i18n.ts.import,
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-plus ph-bold ph-lg',
|
2022-06-20 17:38:49 +09:00
|
|
|
action: () => { im(emoji); },
|
2023-09-22 07:00:12 +09:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: i18n.ts.delete,
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: "ph-trash ph-bold ph-lg",
|
2023-09-22 07:00:12 +09:00
|
|
|
action: () => {
|
|
|
|
os.apiWithDialog("admin/emoji/delete", {
|
|
|
|
id: emoji.id,
|
|
|
|
});
|
|
|
|
},
|
2022-01-28 11:53:12 +09:00
|
|
|
}], ev.currentTarget ?? ev.target);
|
2022-01-13 00:47:05 +09:00
|
|
|
};
|
|
|
|
|
|
|
|
const menu = (ev: MouseEvent) => {
|
|
|
|
os.popupMenu([{
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-download ph-bold ph-lg',
|
2022-01-28 11:39:49 +09:00
|
|
|
text: i18n.ts.export,
|
2022-01-13 00:47:05 +09:00
|
|
|
action: async () => {
|
|
|
|
os.api('export-custom-emojis', {
|
|
|
|
})
|
2022-12-19 19:01:30 +09:00
|
|
|
.then(() => {
|
|
|
|
os.alert({
|
|
|
|
type: 'info',
|
|
|
|
text: i18n.ts.exportRequested,
|
|
|
|
});
|
|
|
|
}).catch((err) => {
|
|
|
|
os.alert({
|
|
|
|
type: 'error',
|
|
|
|
text: err.message,
|
|
|
|
});
|
2022-01-13 00:47:05 +09:00
|
|
|
});
|
2022-06-20 17:38:49 +09:00
|
|
|
},
|
2022-01-13 00:47:40 +09:00
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-upload ph-bold ph-lg',
|
2022-01-28 11:39:49 +09:00
|
|
|
text: i18n.ts.import,
|
2022-01-13 00:47:40 +09:00
|
|
|
action: async () => {
|
2022-01-28 11:53:12 +09:00
|
|
|
const file = await selectFile(ev.currentTarget ?? ev.target);
|
2022-01-13 00:47:40 +09:00
|
|
|
os.api('admin/emoji/import-zip', {
|
|
|
|
fileId: file.id,
|
|
|
|
})
|
2022-12-19 19:01:30 +09:00
|
|
|
.then(() => {
|
|
|
|
os.alert({
|
|
|
|
type: 'info',
|
|
|
|
text: i18n.ts.importRequested,
|
|
|
|
});
|
|
|
|
}).catch((err) => {
|
|
|
|
os.alert({
|
|
|
|
type: 'error',
|
|
|
|
text: err.message,
|
|
|
|
});
|
2022-01-13 00:47:40 +09:00
|
|
|
});
|
2022-06-20 17:38:49 +09:00
|
|
|
},
|
2022-01-28 11:53:12 +09:00
|
|
|
}], ev.currentTarget ?? ev.target);
|
2022-01-13 00:47:05 +09:00
|
|
|
};
|
|
|
|
|
|
|
|
const setCategoryBulk = async () => {
|
|
|
|
const { canceled, result } = await os.inputText({
|
|
|
|
title: 'Category',
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
await os.apiWithDialog('admin/emoji/set-category-bulk', {
|
|
|
|
ids: selectedEmojis.value,
|
|
|
|
category: result,
|
|
|
|
});
|
|
|
|
emojisPaginationComponent.value.reload();
|
|
|
|
};
|
|
|
|
|
2023-07-12 16:31:48 +09:00
|
|
|
const setLicenseBulk = async () => {
|
2023-04-19 08:25:24 +09:00
|
|
|
const { canceled, result } = await os.inputText({
|
|
|
|
title: 'License',
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
await os.apiWithDialog('admin/emoji/set-license-bulk', {
|
|
|
|
ids: selectedEmojis.value,
|
|
|
|
license: result,
|
|
|
|
});
|
|
|
|
emojisPaginationComponent.value.reload();
|
|
|
|
};
|
|
|
|
|
2022-01-13 00:47:05 +09:00
|
|
|
const addTagBulk = async () => {
|
|
|
|
const { canceled, result } = await os.inputText({
|
|
|
|
title: 'Tag',
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
await os.apiWithDialog('admin/emoji/add-aliases-bulk', {
|
|
|
|
ids: selectedEmojis.value,
|
|
|
|
aliases: result.split(' '),
|
|
|
|
});
|
|
|
|
emojisPaginationComponent.value.reload();
|
|
|
|
};
|
|
|
|
|
|
|
|
const removeTagBulk = async () => {
|
|
|
|
const { canceled, result } = await os.inputText({
|
|
|
|
title: 'Tag',
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
await os.apiWithDialog('admin/emoji/remove-aliases-bulk', {
|
|
|
|
ids: selectedEmojis.value,
|
|
|
|
aliases: result.split(' '),
|
|
|
|
});
|
|
|
|
emojisPaginationComponent.value.reload();
|
|
|
|
};
|
|
|
|
|
|
|
|
const setTagBulk = async () => {
|
|
|
|
const { canceled, result } = await os.inputText({
|
|
|
|
title: 'Tag',
|
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
await os.apiWithDialog('admin/emoji/set-aliases-bulk', {
|
|
|
|
ids: selectedEmojis.value,
|
|
|
|
aliases: result.split(' '),
|
|
|
|
});
|
|
|
|
emojisPaginationComponent.value.reload();
|
|
|
|
};
|
|
|
|
|
|
|
|
const delBulk = async () => {
|
|
|
|
const { canceled } = await os.confirm({
|
|
|
|
type: 'warning',
|
2022-01-28 11:39:49 +09:00
|
|
|
text: i18n.ts.deleteConfirm,
|
2022-01-13 00:47:05 +09:00
|
|
|
});
|
|
|
|
if (canceled) return;
|
|
|
|
await os.apiWithDialog('admin/emoji/delete-bulk', {
|
|
|
|
ids: selectedEmojis.value,
|
|
|
|
});
|
|
|
|
emojisPaginationComponent.value.reload();
|
|
|
|
};
|
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
const headerActions = $computed(() => [{
|
|
|
|
asFullButton: true,
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-plus ph-bold ph-lg',
|
2022-06-20 17:38:49 +09:00
|
|
|
text: i18n.ts.addEmoji,
|
|
|
|
handler: add,
|
|
|
|
}, {
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-dots-three ph-bold ph-lg',
|
2022-06-20 17:38:49 +09:00
|
|
|
handler: menu,
|
|
|
|
}]);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => [{
|
2022-06-22 16:29:21 +09:00
|
|
|
key: 'local',
|
2022-06-20 17:38:49 +09:00
|
|
|
title: i18n.ts.local,
|
|
|
|
}, {
|
2022-06-22 16:29:21 +09:00
|
|
|
key: 'remote',
|
2022-06-20 17:38:49 +09:00
|
|
|
title: i18n.ts.remote,
|
|
|
|
}]);
|
|
|
|
|
|
|
|
definePageMetadata(computed(() => ({
|
|
|
|
title: i18n.ts.customEmojis,
|
2023-10-01 04:53:52 +09:00
|
|
|
icon: 'ph-smiley ph-bold pg-lg',
|
2022-06-20 17:38:49 +09:00
|
|
|
})));
|
2020-01-30 04:37:25 +09:00
|
|
|
</script>
|
|
|
|
|
2022-12-27 18:29:39 +09:00
|
|
|
<style lang="scss" scoped>
|
2021-04-22 22:29:33 +09:00
|
|
|
.ogwlenmc {
|
|
|
|
> .local {
|
2021-12-10 21:41:37 +09:00
|
|
|
.empty {
|
|
|
|
margin: var(--margin);
|
2021-10-31 19:22:19 +09:00
|
|
|
}
|
2023-07-08 07:08:16 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
.ldhfsamy {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
|
|
|
grid-gap: 12px;
|
2021-12-10 21:41:37 +09:00
|
|
|
margin: var(--margin) 0;
|
2023-07-08 07:08:16 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .emoji {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-01-13 00:47:05 +09:00
|
|
|
padding: 11px;
|
2021-04-22 22:29:33 +09:00
|
|
|
text-align: left;
|
2022-01-13 00:47:05 +09:00
|
|
|
border: solid 1px var(--panel);
|
2021-04-22 22:29:33 +09:00
|
|
|
|
|
|
|
&:hover {
|
2022-01-13 00:47:05 +09:00
|
|
|
border-color: var(--inputBorderHover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
|
|
|
border-color: var(--accent);
|
2021-04-22 22:29:33 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .img {
|
|
|
|
width: 42px;
|
|
|
|
height: 42px;
|
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .body {
|
|
|
|
padding: 0 0 0 8px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .name {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-02-14 01:09:39 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .info {
|
|
|
|
opacity: 0.5;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-22 22:29:33 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .remote {
|
2021-12-10 21:41:37 +09:00
|
|
|
.empty {
|
|
|
|
margin: var(--margin);
|
|
|
|
}
|
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
.ldhfsamy {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
|
|
|
grid-gap: 12px;
|
2021-12-10 21:41:37 +09:00
|
|
|
margin: var(--margin) 0;
|
2021-04-22 22:29:33 +09:00
|
|
|
|
|
|
|
> .emoji {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 12px;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--accent);
|
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .img {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .body {
|
|
|
|
padding: 0 0 0 8px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .name {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
|
2021-04-22 22:29:33 +09:00
|
|
|
> .info {
|
|
|
|
opacity: 0.5;
|
|
|
|
font-size: 90%;
|
|
|
|
text-overflow: ellipsis;
|
2021-03-02 22:57:16 +09:00
|
|
|
overflow: hidden;
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|