Revert "enhance(frontend): データセーバーモードで隠れる画像を増やす等 (#11779)"

This reverts commit 22d966e92d.
This commit is contained in:
syuilo 2023-09-08 14:15:35 +09:00
parent ff9a65e8fa
commit cd7ab326cd
7 changed files with 42 additions and 75 deletions

View file

@ -5,24 +5,20 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div>
<MediaImage
v-if="image"
:image="image"
:disableImageLink="true"
/>
<ImgWithBlurhash v-if="image" style="max-width: 100%;" :hash="image.blurhash" :src="image.url" :alt="image.comment" :title="image.comment" :width="image.properties.width" :height="image.properties.height" :cover="false"/>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import { } from 'vue';
import * as Misskey from 'misskey-js';
import { ImageBlock } from './block.type';
import MediaImage from '@/components/MkMediaImage.vue';
import ImgWithBlurhash from '@/components/MkImgWithBlurhash.vue';
const props = defineProps<{
block: ImageBlock,
page: Misskey.entities.Page,
}>();
const image = ref<Misskey.entities.DriveFile>(props.page.attachedFiles.find(x => x.id === props.block.fileId));
const image = props.page.attachedFiles.find(x => x.id === props.block.fileId);
</script>