Skip to content

Commit

Permalink
fix: fix image viewer if the image is wider than the viewport (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Nov 5, 2024
1 parent 69d286e commit 58d4a2a
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 58d4a2a

Please sign in to comment.