🎨
This commit is contained in:
		| @@ -26,7 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
| 	<template v-if="showDecoration"> | ||||
| 		<img | ||||
| 			v-for="decoration in decorations ?? user.avatarDecorations" | ||||
| 			:class="[$style.decoration]" | ||||
| 			:class="[$style.decoration, { [$style.decorationBlink]: decoration.blink }]" | ||||
| 			:src="getDecorationUrl(decoration)" | ||||
| 			:style="{ | ||||
| 				rotate: getDecorationAngle(decoration), | ||||
| @@ -60,7 +60,7 @@ const props = withDefaults(defineProps<{ | ||||
| 	link?: boolean; | ||||
| 	preview?: boolean; | ||||
| 	indicator?: boolean; | ||||
| 	decorations?: Omit<Misskey.entities.UserDetailed['avatarDecorations'][number], 'id'>[]; | ||||
| 	decorations?: (Omit<Misskey.entities.UserDetailed['avatarDecorations'][number], 'id'> & { blink?: boolean; })[]; | ||||
| 	forceShowDecoration?: boolean; | ||||
| }>(), { | ||||
| 	target: null, | ||||
| @@ -330,4 +330,17 @@ watch(() => props.user.avatarBlurhash, () => { | ||||
| 	width: 200%; | ||||
| 	pointer-events: none; | ||||
| } | ||||
|  | ||||
| .decorationBlink { | ||||
| 	animation: blink 1s infinite; | ||||
| } | ||||
|  | ||||
| @keyframes blink { | ||||
| 	0%, 100% { | ||||
| 		filter: brightness(2); | ||||
| 	} | ||||
| 	50% { | ||||
| 		filter: brightness(1); | ||||
| 	} | ||||
| } | ||||
| </style> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo