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