mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 03:03:07 +02:00
enhance(client): カスタム絵文字一覧のパフォーマンスを改善
This commit is contained in:
parent
c1dfbe2623
commit
bd23522c76
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<button class="zuvgdzyu _button" @click="menu">
|
<button class="zuvgdzyu _button" @click="menu">
|
||||||
<img :src="`/emoji/${emoji.name}.webp`" class="img" loading="lazy"/>
|
<img :src="emoji.url" class="img" loading="lazy"/>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div class="name _monospace">{{ emoji.name }}</div>
|
<div class="name _monospace">{{ emoji.name }}</div>
|
||||||
<div class="info">{{ emoji.aliases.join(' ') }}</div>
|
<div class="info">{{ emoji.aliases.join(' ') }}</div>
|
||||||
|
@ -15,7 +15,12 @@ import copyToClipboard from '@/scripts/copy-to-clipboard';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
emoji: Record<string, unknown>; // TODO
|
emoji: {
|
||||||
|
name: string;
|
||||||
|
aliases: string[];
|
||||||
|
category: string;
|
||||||
|
url: string;
|
||||||
|
};
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
function menu(ev) {
|
function menu(ev) {
|
||||||
|
|
Loading…
Reference in a new issue