Skip to content

Commit

Permalink
fix: fix image viewer if the image is wider than the viewport
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Sep 24, 2024
1 parent 6caeca5 commit e4387c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/panels/Machine/ConfigFilesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e4387c5

Please sign in to comment.