Skip to content

Commit

Permalink
#451 unified padding of images
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Nov 27, 2024
1 parent c508204 commit ecc2b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vue-components/grid-display/gridElementNormal.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="grid-item-content">
<div class="img-container" v-if="imageData">
<img :src="imageData" draggable="false" style="max-width: 98%; max-height: 98%; object-fit: contain; margin: 1%;" crossorigin="anonymous"/>
<img :src="imageData" draggable="false" style="box-sizing: border-box; max-width: 100%; max-height: 100%; object-fit: contain; padding: 2%;" crossorigin="anonymous"/>
</div>
<div class="text-container" v-if="label" :style="`text-align: center; font-size: 14px; flex-grow: ${imageData ? '0' : '1'}`"><span>{{label}}</span></div>
</div>
Expand Down

0 comments on commit ecc2b3b

Please sign in to comment.