Browse Source

fix(gui-v2): stop attachments overflowing

pull/2972/head
braks 2 years ago
parent
commit
c7c1d362a8
  1. 21
      packages/nc-gui-v2/components/cell/attachment/index.vue

21
packages/nc-gui-v2/components/cell/attachment/index.vue

@ -96,7 +96,8 @@ onKeyDown('Escape', () => {
v-for="(item, i) of visibleItems" v-for="(item, i) of visibleItems"
:id="item.url" :id="item.url"
:key="item.url || item.title" :key="item.url || item.title"
class="nc-attachment flex-auto flex items-center justify-center min-h-[50px] h-[50px] min-w-[50px] w-[50px] border-1" style="flex: 1 1 50px"
class="nc-attachment flex items-center justify-center border-1"
> >
<a-tooltip placement="bottom"> <a-tooltip placement="bottom">
<template #title> <template #title>
@ -138,15 +139,17 @@ onKeyDown('Escape', () => {
</template> </template>
<style lang="scss"> <style lang="scss">
.nc-attachment-cell { .nc-cell {
.ghost, .nc-attachment-cell {
.ghost > * { .ghost,
@apply !pointer-events-none; .ghost > * {
} @apply !pointer-events-none;
}
.dragging { .dragging {
.ant-tooltip { .ant-tooltip {
@apply !hidden; @apply !hidden;
}
} }
} }
} }

Loading…
Cancel
Save