diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-12 11:46:13 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-12 11:46:13 +0900 |
| commit | d1c2e4aaa0d82a915bc92ddf2d6dc6c5ba26d6cb (patch) | |
| tree | 9d09bca65bd2483a7addd5e25d97503abc6f44e2 | |
| parent | update deps (diff) | |
| download | sharkey-d1c2e4aaa0d82a915bc92ddf2d6dc6c5ba26d6cb.tar.gz sharkey-d1c2e4aaa0d82a915bc92ddf2d6dc6c5ba26d6cb.tar.bz2 sharkey-d1c2e4aaa0d82a915bc92ddf2d6dc6c5ba26d6cb.zip | |
refactor
| -rw-r--r-- | packages/frontend/src/components/page/page.image.vue | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/frontend/src/components/page/page.image.vue b/packages/frontend/src/components/page/page.image.vue index 0237644d29..6ea81d257f 100644 --- a/packages/frontend/src/components/page/page.image.vue +++ b/packages/frontend/src/components/page/page.image.vue @@ -1,6 +1,6 @@ <template> -<div class="lzyxtsnt"> - <ImgWithBlurhash v-if="image" :hash="image.blurhash" :src="image.url" :alt="image.comment" :title="image.comment" :cover="false"/> +<div> + <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> @@ -17,11 +17,3 @@ const props = defineProps<{ const image = props.hpml.page.attachedFiles.find(x => x.id === props.block.fileId); </script> - -<style lang="scss" scoped> -.lzyxtsnt { - > img { - max-width: 100%; - } -} -</style> |