Skip to content

Commit

Permalink
fix: incorrect scaling of images in dialogImage (#1746)
Browse files Browse the repository at this point in the history
This fixes the squishing of big images in the config file preview window.
Scales image down while preserving the original aspect ratio.

Signed-off-by: Simion Balanuta <[email protected]>
  • Loading branch information
FOG-Yamato authored Jan 14, 2024
1 parent e932cb9 commit 4ae21da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panels/Machine/ConfigFilesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
<img
v-if="dialogImage.item.url"
:src="dialogImage.item.url"
style="max-height: 100%; width: auto"
style="max-height: 100%; width: auto; object-fit: contain"
alt="image" />
<div v-else-if="dialogImage.item.svg" class="fill-width" v-html="dialogImage.item.svg"></div>
</div>
Expand Down

0 comments on commit 4ae21da

Please sign in to comment.