Browse Source

chore(gui-v2): position img centered

pull/2972/head
braks 2 years ago
parent
commit
eb7ddcd8e7
  1. 4
      packages/nc-gui-v2/components/cell/attachment/Modal.vue

4
packages/nc-gui-v2/components/cell/attachment/Modal.vue

@ -100,8 +100,8 @@ onKeyDown('Escape', () => {
<div class="nc-attachment h-full w-full flex items-center justify-center cursor-move">
<div
v-if="isImage(item.title, item.mimetype)"
:style="{ backgroundImage: `url('${item.url}')`, backgroundSize: 'cover' }"
class="w-full h-full"
:style="{ backgroundImage: `url('${item.url}')` }"
class="w-full h-full bg-contain bg-center bg-no-repeat"
/>
<component

Loading…
Cancel
Save