2023-07-27 07:31:52 +02:00
|
|
|
<!--
|
2024-02-13 16:59:27 +01:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 07:31:52 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
2023-11-02 11:59:18 +01:00
|
|
|
<div :class="$style.root">
|
2023-02-11 01:41:54 +01:00
|
|
|
<div :class="$style.head">
|
2024-01-30 11:53:53 +01:00
|
|
|
<MkAvatar v-if="['pollEnded', 'note'].includes(notification.type) && notification.note" :class="$style.icon" :user="notification.note.user" link preview/>
|
|
|
|
<MkAvatar v-else-if="['roleAssigned', 'achievementEarned'].includes(notification.type)" :class="$style.icon" :user="$i" link preview/>
|
2024-03-06 13:08:42 +01:00
|
|
|
<div v-else-if="notification.type === 'reaction:grouped' && notification.note.reactionAcceptance === 'likeOnly'" :class="[$style.icon, $style.icon_reactionGroupHeart]"><i class="ti ti-heart" style="line-height: 1;"></i></div>
|
2023-11-02 07:57:55 +01:00
|
|
|
<div v-else-if="notification.type === 'reaction:grouped'" :class="[$style.icon, $style.icon_reactionGroup]"><i class="ti ti-plus" style="line-height: 1;"></i></div>
|
|
|
|
<div v-else-if="notification.type === 'renote:grouped'" :class="[$style.icon, $style.icon_renoteGroup]"><i class="ti ti-repeat" style="line-height: 1;"></i></div>
|
2023-09-11 07:31:50 +02:00
|
|
|
<img v-else-if="notification.type === 'test'" :class="$style.icon" :src="infoImageUrl"/>
|
2023-01-16 06:18:11 +01:00
|
|
|
<MkAvatar v-else-if="notification.user" :class="$style.icon" :user="notification.user" link preview/>
|
2023-11-02 07:57:55 +01:00
|
|
|
<img v-else-if="notification.icon" :class="[$style.icon, $style.icon_app]" :src="notification.icon" alt=""/>
|
2023-06-01 10:19:46 +02:00
|
|
|
<div
|
|
|
|
:class="[$style.subIcon, {
|
|
|
|
[$style.t_follow]: notification.type === 'follow',
|
|
|
|
[$style.t_followRequestAccepted]: notification.type === 'followRequestAccepted',
|
|
|
|
[$style.t_receiveFollowRequest]: notification.type === 'receiveFollowRequest',
|
|
|
|
[$style.t_renote]: notification.type === 'renote',
|
|
|
|
[$style.t_reply]: notification.type === 'reply',
|
|
|
|
[$style.t_mention]: notification.type === 'mention',
|
|
|
|
[$style.t_quote]: notification.type === 'quote',
|
|
|
|
[$style.t_pollEnded]: notification.type === 'pollEnded',
|
|
|
|
[$style.t_achievementEarned]: notification.type === 'achievementEarned',
|
2024-01-30 11:53:53 +01:00
|
|
|
[$style.t_roleAssigned]: notification.type === 'roleAssigned' && notification.role.iconUrl == null,
|
2023-06-01 10:19:46 +02:00
|
|
|
}]"
|
|
|
|
>
|
2022-12-19 11:01:30 +01:00
|
|
|
<i v-if="notification.type === 'follow'" class="ti ti-plus"></i>
|
|
|
|
<i v-else-if="notification.type === 'receiveFollowRequest'" class="ti ti-clock"></i>
|
|
|
|
<i v-else-if="notification.type === 'followRequestAccepted'" class="ti ti-check"></i>
|
|
|
|
<i v-else-if="notification.type === 'renote'" class="ti ti-repeat"></i>
|
|
|
|
<i v-else-if="notification.type === 'reply'" class="ti ti-arrow-back-up"></i>
|
|
|
|
<i v-else-if="notification.type === 'mention'" class="ti ti-at"></i>
|
|
|
|
<i v-else-if="notification.type === 'quote'" class="ti ti-quote"></i>
|
|
|
|
<i v-else-if="notification.type === 'pollEnded'" class="ti ti-chart-arrows"></i>
|
2023-01-24 06:10:26 +01:00
|
|
|
<i v-else-if="notification.type === 'achievementEarned'" class="ti ti-medal"></i>
|
2024-01-30 11:53:53 +01:00
|
|
|
<template v-else-if="notification.type === 'roleAssigned'">
|
|
|
|
<img v-if="notification.role.iconUrl" style="height: 1.3em; vertical-align: -22%;" :src="notification.role.iconUrl" alt=""/>
|
|
|
|
<i v-else class="ti ti-badges"></i>
|
|
|
|
</template>
|
2023-01-08 06:22:04 +01:00
|
|
|
<MkReactionIcon
|
2022-06-05 05:26:36 +02:00
|
|
|
v-else-if="notification.type === 'reaction'"
|
2023-11-02 11:59:18 +01:00
|
|
|
:withTooltip="true"
|
2024-01-30 11:53:53 +01:00
|
|
|
:reaction="notification.reaction.replace(/^:(\w+):$/, ':$1@.:')"
|
2023-05-19 06:58:09 +02:00
|
|
|
:noStyle="true"
|
2023-01-10 06:16:59 +01:00
|
|
|
style="width: 100%; height: 100%;"
|
2021-11-07 19:38:48 +01:00
|
|
|
/>
|
2020-01-29 20:37:25 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-10 06:16:59 +01:00
|
|
|
<div :class="$style.tail">
|
|
|
|
<header :class="$style.header">
|
2022-03-06 08:06:27 +01:00
|
|
|
<span v-if="notification.type === 'pollEnded'">{{ i18n.ts._notification.pollEnded }}</span>
|
2023-09-24 00:54:58 +02:00
|
|
|
<span v-else-if="notification.type === 'note'">{{ i18n.ts._notification.newNote }}: <MkUserName :user="notification.note.user"/></span>
|
2023-12-21 02:39:11 +01:00
|
|
|
<span v-else-if="notification.type === 'roleAssigned'">{{ i18n.ts._notification.roleAssigned }}</span>
|
2023-01-21 05:14:55 +01:00
|
|
|
<span v-else-if="notification.type === 'achievementEarned'">{{ i18n.ts._notification.achievementEarned }}</span>
|
2023-09-11 07:31:50 +02:00
|
|
|
<span v-else-if="notification.type === 'test'">{{ i18n.ts._notification.testNotification }}</span>
|
2024-01-30 11:53:53 +01:00
|
|
|
<MkA v-else-if="notification.type === 'follow' || notification.type === 'mention' || notification.type === 'reply' || notification.type === 'renote' || notification.type === 'quote' || notification.type === 'reaction' || notification.type === 'receiveFollowRequest' || notification.type === 'followRequestAccepted'" v-user-preview="notification.user.id" :class="$style.headerName" :to="userPage(notification.user)"><MkUserName :user="notification.user"/></MkA>
|
2024-04-27 12:59:30 +02:00
|
|
|
<span v-else-if="notification.type === 'reaction:grouped' && notification.note.reactionAcceptance === 'likeOnly'">{{ i18n.tsx._notification.likedBySomeUsers({ n: getActualReactedUsersCount(notification) }) }}</span>
|
|
|
|
<span v-else-if="notification.type === 'reaction:grouped'">{{ i18n.tsx._notification.reactedBySomeUsers({ n: getActualReactedUsersCount(notification) }) }}</span>
|
2024-01-20 00:11:59 +01:00
|
|
|
<span v-else-if="notification.type === 'renote:grouped'">{{ i18n.tsx._notification.renotedBySomeUsers({ n: notification.users.length }) }}</span>
|
2024-01-30 11:53:53 +01:00
|
|
|
<span v-else-if="notification.type === 'app'">{{ notification.header }}</span>
|
2023-01-10 06:16:59 +01:00
|
|
|
<MkTime v-if="withTime" :time="notification.createdAt" :class="$style.headerTime"/>
|
2020-01-29 20:37:25 +01:00
|
|
|
</header>
|
2023-06-01 10:19:46 +02:00
|
|
|
<div>
|
2023-11-02 07:57:55 +01:00
|
|
|
<MkA v-if="notification.type === 'reaction' || notification.type === 'reaction:grouped'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
|
2023-01-10 06:16:59 +01:00
|
|
|
<i class="ti ti-quote" :class="$style.quote"></i>
|
2023-01-27 03:35:04 +01:00
|
|
|
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>
|
2023-01-10 06:16:59 +01:00
|
|
|
<i class="ti ti-quote" :class="$style.quote"></i>
|
2023-01-08 03:30:40 +01:00
|
|
|
</MkA>
|
2023-11-02 07:57:55 +01:00
|
|
|
<MkA v-else-if="notification.type === 'renote' || notification.type === 'renote:grouped'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note.renote)">
|
2023-01-10 06:16:59 +01:00
|
|
|
<i class="ti ti-quote" :class="$style.quote"></i>
|
2024-04-27 12:59:30 +02:00
|
|
|
<Mfm :text="getNoteSummary(notification.note.renote)" :plain="true" :nowrap="true" :author="notification.note.renote?.user"/>
|
2023-01-10 06:16:59 +01:00
|
|
|
<i class="ti ti-quote" :class="$style.quote"></i>
|
2023-01-08 03:30:40 +01:00
|
|
|
</MkA>
|
2023-01-10 06:16:59 +01:00
|
|
|
<MkA v-else-if="notification.type === 'reply'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
|
2023-01-27 03:35:04 +01:00
|
|
|
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>
|
2023-01-08 03:30:40 +01:00
|
|
|
</MkA>
|
2023-01-10 06:16:59 +01:00
|
|
|
<MkA v-else-if="notification.type === 'mention'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
|
2023-01-27 03:35:04 +01:00
|
|
|
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>
|
2023-01-08 03:30:40 +01:00
|
|
|
</MkA>
|
2023-01-10 06:16:59 +01:00
|
|
|
<MkA v-else-if="notification.type === 'quote'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
|
2023-01-27 03:35:04 +01:00
|
|
|
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>
|
2023-01-08 03:30:40 +01:00
|
|
|
</MkA>
|
2023-09-21 11:48:15 +02:00
|
|
|
<MkA v-else-if="notification.type === 'note'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
|
|
|
|
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>
|
|
|
|
</MkA>
|
2023-01-10 06:16:59 +01:00
|
|
|
<MkA v-else-if="notification.type === 'pollEnded'" :class="$style.text" :to="notePage(notification.note)" :title="getNoteSummary(notification.note)">
|
|
|
|
<i class="ti ti-quote" :class="$style.quote"></i>
|
2023-01-27 03:35:04 +01:00
|
|
|
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :author="notification.note.user"/>
|
2023-01-10 06:16:59 +01:00
|
|
|
<i class="ti ti-quote" :class="$style.quote"></i>
|
2023-01-08 03:30:40 +01:00
|
|
|
</MkA>
|
2023-12-21 02:39:11 +01:00
|
|
|
<div v-else-if="notification.type === 'roleAssigned'" :class="$style.text">
|
|
|
|
{{ notification.role.name }}
|
|
|
|
</div>
|
2023-01-21 05:14:55 +01:00
|
|
|
<MkA v-else-if="notification.type === 'achievementEarned'" :class="$style.text" to="/my/achievements">
|
|
|
|
{{ i18n.ts._achievements._types['_' + notification.achievement].title }}
|
|
|
|
</MkA>
|
2023-02-05 12:47:27 +01:00
|
|
|
<template v-else-if="notification.type === 'follow'">
|
|
|
|
<span :class="$style.text" style="opacity: 0.6;">{{ i18n.ts.youGotNewFollower }}</span>
|
|
|
|
</template>
|
2023-01-10 06:16:59 +01:00
|
|
|
<span v-else-if="notification.type === 'followRequestAccepted'" :class="$style.text" style="opacity: 0.6;">{{ i18n.ts.followRequestAccepted }}</span>
|
2023-02-05 12:47:27 +01:00
|
|
|
<template v-else-if="notification.type === 'receiveFollowRequest'">
|
|
|
|
<span :class="$style.text" style="opacity: 0.6;">{{ i18n.ts.receiveFollowRequest }}</span>
|
2023-03-09 04:17:34 +01:00
|
|
|
<div v-if="full && !followRequestDone" :class="$style.followRequestCommands">
|
|
|
|
<MkButton :class="$style.followRequestCommandButton" rounded primary @click="acceptFollowRequest()"><i class="ti ti-check"/> {{ i18n.ts.accept }}</MkButton>
|
|
|
|
<MkButton :class="$style.followRequestCommandButton" rounded danger @click="rejectFollowRequest()"><i class="ti ti-x"/> {{ i18n.ts.reject }}</MkButton>
|
2023-02-05 12:47:27 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
2023-09-11 07:31:50 +02:00
|
|
|
<span v-else-if="notification.type === 'test'" :class="$style.text">{{ i18n.ts._notification.notificationWillBeDisplayedLikeThis }}</span>
|
2023-01-10 06:16:59 +01:00
|
|
|
<span v-else-if="notification.type === 'app'" :class="$style.text">
|
2023-01-27 03:35:04 +01:00
|
|
|
<Mfm :text="notification.body" :nowrap="false"/>
|
2023-01-08 03:30:40 +01:00
|
|
|
</span>
|
2023-11-02 07:57:55 +01:00
|
|
|
|
|
|
|
<div v-if="notification.type === 'reaction:grouped'">
|
2024-01-30 11:53:53 +01:00
|
|
|
<div v-for="reaction of notification.reactions" :key="reaction.user.id + reaction.reaction" :class="$style.reactionsItem">
|
2023-11-02 07:57:55 +01:00
|
|
|
<MkAvatar :class="$style.reactionsItemAvatar" :user="reaction.user" link preview/>
|
|
|
|
<div :class="$style.reactionsItemReaction">
|
|
|
|
<MkReactionIcon
|
2023-11-02 11:59:18 +01:00
|
|
|
:withTooltip="true"
|
2024-01-30 11:53:53 +01:00
|
|
|
:reaction="reaction.reaction.replace(/^:(\w+):$/, ':$1@.:')"
|
2023-11-02 07:57:55 +01:00
|
|
|
:noStyle="true"
|
|
|
|
style="width: 100%; height: 100%;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="notification.type === 'renote:grouped'">
|
2024-01-30 11:53:53 +01:00
|
|
|
<div v-for="user of notification.users" :key="user.id" :class="$style.reactionsItem">
|
2023-11-02 07:57:55 +01:00
|
|
|
<MkAvatar :class="$style.reactionsItemAvatar" :user="user" link preview/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-08 03:30:40 +01:00
|
|
|
</div>
|
2020-01-29 20:37:25 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-06-28 07:34:44 +02:00
|
|
|
<script lang="ts" setup>
|
2023-12-21 03:36:45 +01:00
|
|
|
import { ref } from 'vue';
|
2023-09-04 06:33:38 +02:00
|
|
|
import * as Misskey from 'misskey-js';
|
2023-01-08 06:22:04 +01:00
|
|
|
import MkReactionIcon from '@/components/MkReactionIcon.vue';
|
2023-03-09 04:17:34 +01:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { getNoteSummary } from '@/scripts/get-note-summary.js';
|
|
|
|
import { notePage } from '@/filters/note.js';
|
|
|
|
import { userPage } from '@/filters/user.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
2024-01-04 10:32:46 +01:00
|
|
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
2024-01-30 11:53:53 +01:00
|
|
|
import { signinRequired } from '@/account.js';
|
2023-09-19 09:37:43 +02:00
|
|
|
import { infoImageUrl } from '@/instance.js';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2024-01-30 11:53:53 +01:00
|
|
|
const $i = signinRequired();
|
|
|
|
|
2022-06-28 07:34:44 +02:00
|
|
|
const props = withDefaults(defineProps<{
|
2023-09-04 06:33:38 +02:00
|
|
|
notification: Misskey.entities.Notification;
|
2022-06-28 07:34:44 +02:00
|
|
|
withTime?: boolean;
|
|
|
|
full?: boolean;
|
|
|
|
}>(), {
|
|
|
|
withTime: false,
|
|
|
|
full: false,
|
|
|
|
});
|
|
|
|
|
|
|
|
const followRequestDone = ref(false);
|
|
|
|
|
|
|
|
const acceptFollowRequest = () => {
|
2024-01-30 11:53:53 +01:00
|
|
|
if (props.notification.user == null) return;
|
2022-06-28 07:34:44 +02:00
|
|
|
followRequestDone.value = true;
|
2024-01-04 10:32:46 +01:00
|
|
|
misskeyApi('following/requests/accept', { userId: props.notification.user.id });
|
2022-06-28 07:34:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const rejectFollowRequest = () => {
|
2024-01-30 11:53:53 +01:00
|
|
|
if (props.notification.user == null) return;
|
2022-06-28 07:34:44 +02:00
|
|
|
followRequestDone.value = true;
|
2024-01-04 10:32:46 +01:00
|
|
|
misskeyApi('following/requests/reject', { userId: props.notification.user.id });
|
2022-06-28 07:34:44 +02:00
|
|
|
};
|
2024-04-27 12:59:30 +02:00
|
|
|
|
|
|
|
function getActualReactedUsersCount(notification: Misskey.entities.Notification) {
|
|
|
|
if (notification.type !== 'reaction:grouped') return 0;
|
|
|
|
return new Set(notification.reactions.map((reaction) => reaction.user.id)).size;
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
</script>
|
|
|
|
|
2023-01-10 06:16:59 +01:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2020-01-29 20:37:25 +01:00
|
|
|
position: relative;
|
|
|
|
box-sizing: border-box;
|
2020-02-18 23:00:44 +01:00
|
|
|
padding: 24px 32px;
|
2020-01-29 20:37:25 +01:00
|
|
|
font-size: 0.9em;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
display: flex;
|
2020-10-17 13:12:00 +02:00
|
|
|
contain: content;
|
2023-01-10 06:16:59 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2023-01-10 06:16:59 +01:00
|
|
|
.head {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
width: 42px;
|
|
|
|
height: 42px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2023-11-02 07:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon_reactionGroup,
|
2024-03-06 13:08:42 +01:00
|
|
|
.icon_reactionGroupHeart,
|
2023-11-02 07:57:55 +01:00
|
|
|
.icon_renoteGroup {
|
|
|
|
display: grid;
|
|
|
|
align-items: center;
|
|
|
|
justify-items: center;
|
|
|
|
width: 80%;
|
|
|
|
height: 80%;
|
|
|
|
font-size: 15px;
|
|
|
|
border-radius: 100%;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon_reactionGroup {
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventReaction);
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon_reactionGroupHeart {
|
|
|
|
background: var(--eventReactionHeart);
|
2023-11-02 07:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon_renoteGroup {
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventRenote);
|
2023-11-02 07:57:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon_app {
|
2023-01-10 06:16:59 +01:00
|
|
|
border-radius: 6px;
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2023-01-10 06:16:59 +01:00
|
|
|
.subIcon {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
bottom: -2px;
|
|
|
|
right: -2px;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 100%;
|
|
|
|
background: var(--panel);
|
|
|
|
box-shadow: 0 0 0 3px var(--panel);
|
2023-02-09 01:32:39 +01:00
|
|
|
font-size: 11px;
|
2023-01-10 06:16:59 +01:00
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
|
|
|
}
|
2022-12-26 00:40:13 +01:00
|
|
|
|
2023-02-15 05:37:18 +01:00
|
|
|
.t_follow, .t_followRequestAccepted, .t_receiveFollowRequest {
|
2023-01-10 06:16:59 +01:00
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventFollow);
|
2023-01-10 06:16:59 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.t_renote {
|
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventRenote);
|
2023-01-10 06:16:59 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.t_quote {
|
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventRenote);
|
2023-01-10 06:16:59 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.t_reply {
|
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventReply);
|
2023-01-10 06:16:59 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.t_mention {
|
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventOther);
|
2023-01-10 06:16:59 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.t_pollEnded {
|
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventOther);
|
2023-01-10 06:16:59 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-01-21 05:14:55 +01:00
|
|
|
.t_achievementEarned {
|
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventAchievement);
|
2023-01-21 05:14:55 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2024-01-30 11:53:53 +01:00
|
|
|
.t_roleAssigned {
|
|
|
|
padding: 3px;
|
2024-03-06 13:08:42 +01:00
|
|
|
background: var(--eventOther);
|
2024-01-30 11:53:53 +01:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2023-01-10 06:16:59 +01:00
|
|
|
.tail {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.headerName {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
min-width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.headerTime {
|
|
|
|
margin-left: auto;
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
2023-01-16 22:22:57 +01:00
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
overflow: clip;
|
2023-01-10 06:16:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.quote {
|
|
|
|
vertical-align: super;
|
|
|
|
font-size: 50%;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.quote:first-child {
|
|
|
|
margin-right: 4px;
|
2023-10-21 00:54:28 +02:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
2023-01-10 06:16:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.quote:last-child {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
2023-03-09 04:17:34 +01:00
|
|
|
.followRequestCommands {
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
|
|
|
max-width: 300px;
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
.followRequestCommandButton {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
2023-11-02 07:57:55 +01:00
|
|
|
.reactionsItem {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 38px;
|
|
|
|
height: 38px;
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reactionsItemAvatar {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reactionsItemReaction {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
bottom: -2px;
|
|
|
|
right: -2px;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 100%;
|
|
|
|
background: var(--panel);
|
|
|
|
box-shadow: 0 0 0 3px var(--panel);
|
|
|
|
font-size: 11px;
|
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2022-12-26 00:40:13 +01:00
|
|
|
@container (max-width: 600px) {
|
2023-01-10 06:16:59 +01:00
|
|
|
.root {
|
2022-12-26 00:40:13 +01:00
|
|
|
padding: 16px;
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@container (max-width: 500px) {
|
2023-01-10 06:16:59 +01:00
|
|
|
.root {
|
2022-12-26 00:40:13 +01:00
|
|
|
padding: 12px;
|
|
|
|
font-size: 0.85em;
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
</style>
|