2018-02-20 04:29:52 -07:00
|
|
|
<template>
|
2022-01-10 08:05:18 -07:00
|
|
|
<div ref="rootEl" class="swhvrteh _popup _shadow" :style="{ zIndex }" @contextmenu.prevent="() => {}">
|
2021-11-19 03:36:12 -07:00
|
|
|
<ol v-if="type === 'user'" ref="suggests" class="users">
|
|
|
|
<li v-for="user in users" tabindex="-1" class="user" @click="complete(type, user)" @keydown="onKeydown">
|
2020-02-16 06:46:51 -07:00
|
|
|
<img class="avatar" :src="user.avatarUrl"/>
|
2018-12-05 18:02:04 -07:00
|
|
|
<span class="name">
|
2021-11-19 03:36:12 -07:00
|
|
|
<MkUserName :key="user.id" :user="user"/>
|
2018-12-05 18:02:04 -07:00
|
|
|
</span>
|
2020-10-17 05:12:00 -06:00
|
|
|
<span class="username">@{{ acct(user) }}</span>
|
2018-02-20 04:29:52 -07:00
|
|
|
</li>
|
2022-01-27 19:39:49 -07:00
|
|
|
<li tabindex="-1" class="choose" @click="chooseUser()" @keydown="onKeydown">{{ i18n.ts.selectUser }}</li>
|
2018-02-20 04:29:52 -07:00
|
|
|
</ol>
|
2021-11-19 03:36:12 -07:00
|
|
|
<ol v-else-if="hashtags.length > 0" ref="suggests" class="hashtags">
|
|
|
|
<li v-for="hashtag in hashtags" tabindex="-1" @click="complete(type, hashtag)" @keydown="onKeydown">
|
2018-07-17 16:19:24 -06:00
|
|
|
<span class="name">{{ hashtag }}</span>
|
|
|
|
</li>
|
|
|
|
</ol>
|
2021-11-19 03:36:12 -07:00
|
|
|
<ol v-else-if="emojis.length > 0" ref="suggests" class="emojis">
|
|
|
|
<li v-for="emoji in emojis" tabindex="-1" @click="complete(type, emoji.emoji)" @keydown="onKeydown">
|
2022-01-10 08:05:18 -07:00
|
|
|
<span v-if="emoji.isCustomEmoji" class="emoji"><img :src="defaultStore.state.disableShowingAnimatedImages ? getStaticImageUrl(emoji.url) : emoji.url" :alt="emoji.emoji"/></span>
|
|
|
|
<span v-else-if="!defaultStore.state.useOsNativeEmojis" class="emoji"><img :src="emoji.url" :alt="emoji.emoji"/></span>
|
2021-11-19 03:36:12 -07:00
|
|
|
<span v-else class="emoji">{{ emoji.emoji }}</span>
|
2019-06-10 08:09:36 -06:00
|
|
|
<span class="name" v-html="emoji.name.replace(q, `<b>${q}</b>`)"></span>
|
2021-11-19 03:36:12 -07:00
|
|
|
<span v-if="emoji.aliasOf" class="alias">({{ emoji.aliasOf }})</span>
|
2018-02-24 09:55:49 -07:00
|
|
|
</li>
|
|
|
|
</ol>
|
2021-11-19 03:36:12 -07:00
|
|
|
<ol v-else-if="mfmTags.length > 0" ref="suggests" class="mfmTags">
|
|
|
|
<li v-for="tag in mfmTags" tabindex="-1" @click="complete(type, tag)" @keydown="onKeydown">
|
2021-09-25 11:55:11 -06:00
|
|
|
<span class="tag">{{ tag }}</span>
|
|
|
|
</li>
|
|
|
|
</ol>
|
2018-02-20 04:29:52 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2022-01-10 08:05:18 -07:00
|
|
|
import { markRaw, ref, onUpdated, onMounted, onBeforeUnmount, nextTick, watch } from 'vue';
|
2021-11-11 10:02:25 -07:00
|
|
|
import contains from '@/scripts/contains';
|
|
|
|
import { getStaticImageUrl } from '@/scripts/get-static-image-url';
|
|
|
|
import { acct } from '@/filters/user';
|
|
|
|
import * as os from '@/os';
|
|
|
|
import { MFM_TAGS } from '@/scripts/mfm-tags';
|
2022-01-10 08:05:18 -07:00
|
|
|
import { defaultStore } from '@/store';
|
|
|
|
import { emojilist } from '@/scripts/emojilist';
|
|
|
|
import { instance } from '@/instance';
|
|
|
|
import { twemojiSvgBase } from '@/scripts/twemoji-base';
|
|
|
|
import { i18n } from '@/i18n';
|
2018-02-20 04:29:52 -07:00
|
|
|
|
2018-11-01 06:28:39 -06:00
|
|
|
type EmojiDef = {
|
|
|
|
emoji: string;
|
|
|
|
name: string;
|
|
|
|
aliasOf?: string;
|
|
|
|
url?: string;
|
2018-11-05 03:20:35 -07:00
|
|
|
isCustomEmoji?: boolean;
|
2018-11-01 06:28:39 -06:00
|
|
|
};
|
|
|
|
|
2019-09-21 06:31:38 -06:00
|
|
|
const lib = emojilist.filter(x => x.category !== 'flags');
|
2018-04-09 03:52:29 -06:00
|
|
|
|
2018-11-05 22:09:40 -07:00
|
|
|
const char2file = (char: string) => {
|
2022-01-10 08:05:18 -07:00
|
|
|
let codes = Array.from(char).map(x => x.codePointAt(0)?.toString(16));
|
2018-11-05 22:09:40 -07:00
|
|
|
if (!codes.includes('200d')) codes = codes.filter(x => x != 'fe0f');
|
2022-01-10 08:05:18 -07:00
|
|
|
return codes.filter(x => x && x.length).join('-');
|
2018-11-05 22:09:40 -07:00
|
|
|
};
|
|
|
|
|
2019-09-21 06:31:38 -06:00
|
|
|
const emjdb: EmojiDef[] = lib.map(x => ({
|
|
|
|
emoji: x.char,
|
|
|
|
name: x.name,
|
|
|
|
url: `${twemojiSvgBase}/${char2file(x.char)}.svg`
|
2018-02-25 01:03:39 -07:00
|
|
|
}));
|
2018-04-09 03:52:29 -06:00
|
|
|
|
2019-09-21 06:31:38 -06:00
|
|
|
for (const x of lib) {
|
|
|
|
if (x.keywords) {
|
|
|
|
for (const k of x.keywords) {
|
2018-02-25 01:03:39 -07:00
|
|
|
emjdb.push({
|
2019-09-21 06:31:38 -06:00
|
|
|
emoji: x.char,
|
2018-02-25 01:03:39 -07:00
|
|
|
name: k,
|
2019-09-21 06:31:38 -06:00
|
|
|
aliasOf: x.name,
|
|
|
|
url: `${twemojiSvgBase}/${char2file(x.char)}.svg`
|
2018-02-25 01:03:39 -07:00
|
|
|
});
|
2018-12-11 04:36:55 -07:00
|
|
|
}
|
2018-02-25 01:03:39 -07:00
|
|
|
}
|
2018-12-11 04:36:55 -07:00
|
|
|
}
|
2018-04-09 03:52:29 -06:00
|
|
|
|
2018-02-25 01:03:39 -07:00
|
|
|
emjdb.sort((a, b) => a.name.length - b.name.length);
|
|
|
|
|
2021-08-11 21:41:57 -06:00
|
|
|
//#region Construct Emoji DB
|
|
|
|
const customEmojis = instance.emojis;
|
|
|
|
const emojiDefinitions: EmojiDef[] = [];
|
|
|
|
|
|
|
|
for (const x of customEmojis) {
|
|
|
|
emojiDefinitions.push({
|
|
|
|
name: x.name,
|
|
|
|
emoji: `:${x.name}:`,
|
|
|
|
url: x.url,
|
|
|
|
isCustomEmoji: true
|
|
|
|
});
|
|
|
|
|
|
|
|
if (x.aliases) {
|
|
|
|
for (const alias of x.aliases) {
|
|
|
|
emojiDefinitions.push({
|
|
|
|
name: alias,
|
|
|
|
aliasOf: x.name,
|
|
|
|
emoji: `:${x.name}:`,
|
|
|
|
url: x.url,
|
|
|
|
isCustomEmoji: true
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
emojiDefinitions.sort((a, b) => a.name.length - b.name.length);
|
|
|
|
|
|
|
|
const emojiDb = markRaw(emojiDefinitions.concat(emjdb));
|
|
|
|
//#endregion
|
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
export default {
|
|
|
|
emojiDb,
|
|
|
|
emojiDefinitions,
|
|
|
|
emojilist,
|
|
|
|
customEmojis,
|
|
|
|
};
|
|
|
|
</script>
|
2018-07-17 16:19:24 -06:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
<script lang="ts" setup>
|
|
|
|
const props = defineProps<{
|
|
|
|
type: string;
|
|
|
|
q: string | null;
|
|
|
|
textarea: HTMLTextAreaElement;
|
|
|
|
close: () => void;
|
|
|
|
x: number;
|
|
|
|
y: number;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(e: 'done', v: { type: string; value: any }): void;
|
|
|
|
(e: 'closed'): void;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const suggests = ref<Element>();
|
|
|
|
const rootEl = ref<HTMLDivElement>();
|
|
|
|
|
|
|
|
const fetching = ref(true);
|
|
|
|
const users = ref<any[]>([]);
|
|
|
|
const hashtags = ref<any[]>([]);
|
|
|
|
const emojis = ref<(EmojiDef)[]>([]);
|
|
|
|
const items = ref<Element[] | HTMLCollection>([]);
|
|
|
|
const mfmTags = ref<string[]>([]);
|
|
|
|
const select = ref(-1);
|
|
|
|
const zIndex = os.claimZIndex('high');
|
|
|
|
|
|
|
|
function complete(type: string, value: any) {
|
|
|
|
emit('done', { type, value });
|
|
|
|
emit('closed');
|
|
|
|
if (type === 'emoji') {
|
|
|
|
let recents = defaultStore.state.recentlyUsedEmojis;
|
|
|
|
recents = recents.filter((e: any) => e !== value);
|
|
|
|
recents.unshift(value);
|
|
|
|
defaultStore.set('recentlyUsedEmojis', recents.splice(0, 32));
|
|
|
|
}
|
|
|
|
}
|
2018-07-17 16:19:24 -06:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
function setPosition() {
|
|
|
|
if (!rootEl.value) return;
|
|
|
|
if (props.x + rootEl.value.offsetWidth > window.innerWidth) {
|
|
|
|
rootEl.value.style.left = (window.innerWidth - rootEl.value.offsetWidth) + 'px';
|
|
|
|
} else {
|
|
|
|
rootEl.value.style.left = `${props.x}px`;
|
|
|
|
}
|
|
|
|
if (props.y + rootEl.value.offsetHeight > window.innerHeight) {
|
|
|
|
rootEl.value.style.top = (props.y - rootEl.value.offsetHeight) + 'px';
|
|
|
|
rootEl.value.style.marginTop = '0';
|
|
|
|
} else {
|
|
|
|
rootEl.value.style.top = props.y + 'px';
|
|
|
|
rootEl.value.style.marginTop = 'calc(1em + 8px)';
|
|
|
|
}
|
|
|
|
}
|
2020-01-31 15:38:40 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
function exec() {
|
|
|
|
select.value = -1;
|
|
|
|
if (suggests.value) {
|
|
|
|
for (const el of Array.from(items.value)) {
|
|
|
|
el.removeAttribute('data-selected');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (props.type === 'user') {
|
|
|
|
if (!props.q) {
|
|
|
|
users.value = [];
|
|
|
|
fetching.value = false;
|
|
|
|
return;
|
|
|
|
}
|
2018-02-20 04:29:52 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
const cacheKey = `autocomplete:user:${props.q}`;
|
|
|
|
const cache = sessionStorage.getItem(cacheKey);
|
|
|
|
|
|
|
|
if (cache) {
|
|
|
|
const users = JSON.parse(cache);
|
|
|
|
users.value = users;
|
|
|
|
fetching.value = false;
|
|
|
|
} else {
|
|
|
|
os.api('users/search-by-username-and-host', {
|
|
|
|
username: props.q,
|
|
|
|
limit: 10,
|
|
|
|
detail: false
|
|
|
|
}).then(searchedUsers => {
|
|
|
|
users.value = searchedUsers as any[];
|
|
|
|
fetching.value = false;
|
|
|
|
// キャッシュ
|
|
|
|
sessionStorage.setItem(cacheKey, JSON.stringify(searchedUsers));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
} else if (props.type === 'hashtag') {
|
|
|
|
if (!props.q || props.q == '') {
|
|
|
|
hashtags.value = JSON.parse(localStorage.getItem('hashtags') || '[]');
|
|
|
|
fetching.value = false;
|
|
|
|
} else {
|
|
|
|
const cacheKey = `autocomplete:hashtag:${props.q}`;
|
|
|
|
const cache = sessionStorage.getItem(cacheKey);
|
|
|
|
if (cache) {
|
|
|
|
const hashtags = JSON.parse(cache);
|
|
|
|
hashtags.value = hashtags;
|
|
|
|
fetching.value = false;
|
|
|
|
} else {
|
|
|
|
os.api('hashtags/search', {
|
|
|
|
query: props.q,
|
|
|
|
limit: 30
|
|
|
|
}).then(searchedHashtags => {
|
|
|
|
hashtags.value = searchedHashtags as any[];
|
|
|
|
fetching.value = false;
|
|
|
|
// キャッシュ
|
|
|
|
sessionStorage.setItem(cacheKey, JSON.stringify(searchedHashtags));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (props.type === 'emoji') {
|
|
|
|
if (!props.q || props.q == '') {
|
|
|
|
// 最近使った絵文字をサジェスト
|
|
|
|
emojis.value = defaultStore.state.recentlyUsedEmojis.map(emoji => emojiDb.find(e => e.emoji == emoji)).filter(x => x) as EmojiDef[];
|
|
|
|
return;
|
2018-12-11 04:36:55 -07:00
|
|
|
}
|
2018-02-20 04:29:52 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
const matched: EmojiDef[] = [];
|
|
|
|
const max = 30;
|
2018-02-25 01:38:16 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
emojiDb.some(x => {
|
|
|
|
if (x.name.startsWith(props.q || '') && !x.aliasOf && !matched.some(y => y.emoji == x.emoji)) matched.push(x);
|
|
|
|
return matched.length == max;
|
2018-02-25 02:40:39 -07:00
|
|
|
});
|
2018-07-17 16:19:24 -06:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
if (matched.length < max) {
|
|
|
|
emojiDb.some(x => {
|
|
|
|
if (x.name.startsWith(props.q || '') && !matched.some(y => y.emoji == x.emoji)) matched.push(x);
|
|
|
|
return matched.length == max;
|
|
|
|
});
|
|
|
|
}
|
2018-02-20 04:29:52 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
if (matched.length < max) {
|
|
|
|
emojiDb.some(x => {
|
|
|
|
if (x.name.includes(props.q || '') && !matched.some(y => y.emoji == x.emoji)) matched.push(x);
|
|
|
|
return matched.length == max;
|
|
|
|
});
|
2018-12-11 04:36:55 -07:00
|
|
|
}
|
2020-10-17 05:12:00 -06:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
emojis.value = matched;
|
|
|
|
} else if (props.type === 'mfmTag') {
|
|
|
|
if (!props.q || props.q == '') {
|
|
|
|
mfmTags.value = MFM_TAGS;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
mfmTags.value = MFM_TAGS.filter(tag => tag.startsWith(props.q || ''));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function onMousedown(e: Event) {
|
|
|
|
if (!contains(rootEl.value, e.target) && (rootEl.value != e.target)) props.close();
|
|
|
|
}
|
|
|
|
|
|
|
|
function onKeydown(e: KeyboardEvent) {
|
|
|
|
const cancel = () => {
|
|
|
|
e.preventDefault();
|
|
|
|
e.stopPropagation();
|
|
|
|
};
|
|
|
|
|
|
|
|
switch (e.key) {
|
|
|
|
case 'Enter':
|
|
|
|
if (select.value !== -1) {
|
|
|
|
cancel();
|
|
|
|
(items.value[select.value] as any).click();
|
2020-01-31 15:38:40 -07:00
|
|
|
} else {
|
2022-01-10 08:05:18 -07:00
|
|
|
props.close();
|
2020-01-31 15:38:40 -07:00
|
|
|
}
|
2022-01-10 08:05:18 -07:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 'Escape':
|
|
|
|
cancel();
|
|
|
|
props.close();
|
|
|
|
break;
|
2020-01-31 15:38:40 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
case 'ArrowUp':
|
|
|
|
if (select.value !== -1) {
|
|
|
|
cancel();
|
|
|
|
selectPrev();
|
2020-01-31 15:38:40 -07:00
|
|
|
} else {
|
2022-01-10 08:05:18 -07:00
|
|
|
props.close();
|
2018-02-25 02:40:39 -07:00
|
|
|
}
|
2022-01-10 08:05:18 -07:00
|
|
|
break;
|
2018-02-25 02:40:39 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
case 'Tab':
|
|
|
|
case 'ArrowDown':
|
|
|
|
cancel();
|
|
|
|
selectNext();
|
|
|
|
break;
|
2018-02-20 04:29:52 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
default:
|
|
|
|
e.stopPropagation();
|
|
|
|
props.textarea.focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function selectNext() {
|
|
|
|
if (++select.value >= items.value.length) select.value = 0;
|
|
|
|
if (items.value.length === 0) select.value = -1;
|
|
|
|
applySelect();
|
|
|
|
}
|
|
|
|
|
|
|
|
function selectPrev() {
|
|
|
|
if (--select.value < 0) select.value = items.value.length - 1;
|
|
|
|
applySelect();
|
|
|
|
}
|
|
|
|
|
|
|
|
function applySelect() {
|
|
|
|
for (const el of Array.from(items.value)) {
|
|
|
|
el.removeAttribute('data-selected');
|
|
|
|
}
|
2020-01-31 15:38:40 -07:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
if (select.value !== -1) {
|
|
|
|
items.value[select.value].setAttribute('data-selected', 'true');
|
|
|
|
(items.value[select.value] as any).focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function chooseUser() {
|
|
|
|
props.close();
|
|
|
|
os.selectUser().then(user => {
|
|
|
|
complete('user', user);
|
|
|
|
props.textarea.focus();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
onUpdated(() => {
|
|
|
|
setPosition();
|
|
|
|
items.value = suggests.value?.children || [];
|
|
|
|
});
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
setPosition();
|
|
|
|
|
|
|
|
props.textarea.addEventListener('keydown', onKeydown);
|
|
|
|
|
|
|
|
for (const el of Array.from(document.querySelectorAll('body *'))) {
|
|
|
|
el.addEventListener('mousedown', onMousedown);
|
|
|
|
}
|
|
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
exec();
|
|
|
|
|
|
|
|
watch(() => props.q, () => {
|
|
|
|
nextTick(() => {
|
|
|
|
exec();
|
2020-01-31 15:42:21 -07:00
|
|
|
});
|
2022-01-10 08:05:18 -07:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
onBeforeUnmount(() => {
|
|
|
|
props.textarea.removeEventListener('keydown', onKeydown);
|
2020-10-17 05:12:00 -06:00
|
|
|
|
2022-01-10 08:05:18 -07:00
|
|
|
for (const el of Array.from(document.querySelectorAll('body *'))) {
|
|
|
|
el.removeEventListener('mousedown', onMousedown);
|
2018-02-20 04:29:52 -07:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2020-01-29 12:37:25 -07:00
|
|
|
<style lang="scss" scoped>
|
2020-01-31 15:38:40 -07:00
|
|
|
.swhvrteh {
|
2020-01-29 12:37:25 -07:00
|
|
|
position: fixed;
|
|
|
|
max-width: 100%;
|
|
|
|
margin-top: calc(1em + 8px);
|
2021-03-02 06:57:16 -07:00
|
|
|
overflow: hidden;
|
2020-01-29 12:37:25 -07:00
|
|
|
transition: top 0.1s ease, left 0.1s ease;
|
|
|
|
|
|
|
|
> ol {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 4px 0;
|
|
|
|
max-height: 190px;
|
|
|
|
max-width: 500px;
|
|
|
|
overflow: auto;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 4px 12px;
|
|
|
|
white-space: nowrap;
|
2021-03-02 06:57:16 -07:00
|
|
|
overflow: hidden;
|
2020-01-29 12:37:25 -07:00
|
|
|
font-size: 0.9em;
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
&, * {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
2021-03-02 06:57:16 -07:00
|
|
|
overflow: hidden;
|
2020-01-29 12:37:25 -07:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2020-07-04 12:49:58 -06:00
|
|
|
background: var(--X3);
|
2020-01-29 12:37:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-selected='true'] {
|
|
|
|
background: var(--accent);
|
|
|
|
|
|
|
|
&, * {
|
|
|
|
color: #fff !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var(--accentDarken);
|
|
|
|
|
|
|
|
&, * {
|
|
|
|
color: #fff !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .users > li {
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
min-width: 28px;
|
|
|
|
min-height: 28px;
|
|
|
|
max-width: 28px;
|
|
|
|
max-height: 28px;
|
|
|
|
margin: 0 8px 0 0;
|
|
|
|
border-radius: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
margin: 0 8px 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .emojis > li {
|
|
|
|
|
|
|
|
.emoji {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 4px 0 0;
|
|
|
|
width: 24px;
|
|
|
|
|
|
|
|
> img {
|
|
|
|
width: 24px;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.alias {
|
|
|
|
margin: 0 0 0 8px;
|
|
|
|
}
|
|
|
|
}
|
2021-09-25 11:55:11 -06:00
|
|
|
|
|
|
|
> .mfmTags > li {
|
|
|
|
|
|
|
|
.name {
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 12:37:25 -07:00
|
|
|
}
|
2018-02-20 04:29:52 -07:00
|
|
|
</style>
|