fix: fix image viewer if the image is wider than the viewport (#2020)
This commit is contained in:
parent
69d286ea70
commit
58d4a2a9fe
@ -260,9 +260,9 @@
|
|||||||
<img
|
<img
|
||||||
v-if="dialogImage.item.url"
|
v-if="dialogImage.item.url"
|
||||||
:src="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" />
|
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>
|
</div>
|
||||||
</panel>
|
</panel>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user