fix: fix image viewer if the image is wider than the viewport (#2020)

This commit is contained in:
Stefan Dej 2024-11-05 23:23:26 +01:00 committed by GitHub
parent 69d286ea70
commit 58d4a2a9fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,9 +260,9 @@
<img
v-if="dialogImage.item.url"
:src="dialogImage.item.url"
style="max-height: 100%; width: auto; object-fit: contain"
style="max-height: 100%; width: auto; max-width: 100%; object-fit: contain"
alt="image" />
<div v-else-if="dialogImage.item.svg" class="fill-width" v-html="dialogImage.item.svg"></div>
<div v-else-if="dialogImage.item.svg" class="fill-width" v-html="dialogImage.item.svg" />
</div>
</panel>
</v-dialog>