mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-25 12:05:19 +02:00
Update MkImageGallery.item.vue
This commit is contained in:
@@ -419,7 +419,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
onMounted(() => {
|
||||
// 画像の初期位置・サイズをsourceElementの位置に合わせてdefaultの位置にアニメーションする
|
||||
if (props.image.sourceElement != null) {
|
||||
if (props.image.sourceElement != null && props.activated) {
|
||||
const elementStyles = window.getComputedStyle(props.image.sourceElement);
|
||||
const fit = elementStyles.objectFit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user