Make animated emojis in reactions pause #378

Merged
floatingghost merged 2 commits from sarayalth/akkoma-fe:pause-animated-reaction into develop 2024-05-28 02:25:02 +00:00
2 changed files with 8 additions and 5 deletions
Showing only changes of commit 1f5f8665c8 - Show all commits

View file

@ -6,6 +6,7 @@ import UserCard from '../user_card/user_card.vue'
import Timeago from '../timeago/timeago.vue'
import RichContent from 'src/components/rich_content/rich_content.jsx'
import ConfirmModal from '../confirm_modal/confirm_modal.vue'
import StillImage from '../still-image/still-image.vue'
import { isStatusNotification } from '../../services/notification_utils/notification_utils.js'
import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js'
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
@ -50,7 +51,8 @@ const Notification = {
Timeago,
Status,
RichContent,
ConfirmModal
ConfirmModal,
StillImage
},
methods: {
toggleUserExpanded () {

View file

@ -116,12 +116,13 @@
scope="global"
keypath="notifications.reacted_with"
>
<img
<still-image
v-if="notification.emoji_url !== null"
class="notification-reaction-emoji"
class="notification-reaction-emoji emoji img"

why did you add generic img and emoji classes here? Removing them doesn’t seem to make a difference and on a cursory search no matching selectors seem to exist; did i miss something?

why did you add generic `img` and `emoji` classes here? Removing them doesn’t seem to make a difference and on a cursory search no matching selectors seem to exist; did i miss something?

honestly, i don't remember why those are there, i just tested myself and it seems to work fine without them

honestly, i don't remember why those are there, i just tested myself and it seems to work fine without them
:src="notification.emoji_url"
:name="notification.emoji"
>
:title="notification.emoji"
:alt="notification.emoji"
/>
<span
v-else
class="emoji-reaction-emoji"