diff --git a/packages/nc-gui/components/cell/attachment/IconView.vue b/packages/nc-gui/components/cell/attachment/IconView.vue new file mode 100644 index 0000000000..80422eacb5 --- /dev/null +++ b/packages/nc-gui/components/cell/attachment/IconView.vue @@ -0,0 +1,13 @@ + + + diff --git a/packages/nc-gui/components/cell/attachment/Modal.vue b/packages/nc-gui/components/cell/attachment/Modal.vue index e54dbc0fd3..369b78302f 100644 --- a/packages/nc-gui/components/cell/attachment/Modal.vue +++ b/packages/nc-gui/components/cell/attachment/Modal.vue @@ -158,9 +158,23 @@ const handleFileDelete = (i: number) => { @click.stop="onClick(item)" /> - + - +
diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index e3a0351357..b582582dc3 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -261,16 +261,7 @@ defineExpose({ @click="onFileClick(item)" /> - - - +
@@ -329,13 +320,7 @@ defineExpose({
@@ -355,14 +340,14 @@ defineExpose({
- + @@ -371,11 +356,11 @@ defineExpose({ type="secondary" size="xsmall" data-testid="attachment-cell-file-picker-button" - class="!px-2 !h-5.5 !min-w-[fit-content]" + class="!px-2 !h-7 !min-w-[fit-content]" @click.stop="open" > -
- +
+ {{ $t('activity.addFiles') }} @@ -389,56 +374,42 @@ defineExpose({ ref="sortableRef" :class="{ 'justify-center': !isGallery && !isKanban, - 'py-1': rowHeight === 1, - 'py-1.5 !gap-4 ': rowHeight !== 1, }" - class="nc-attachment-wrapper flex cursor-pointer w-full items-center flex-wrap gap-3 nc-scrollbar-thin mt-0 items-start px-[1px]" + class="nc-attachment-wrapper flex cursor-pointer w-full items-center flex-wrap gap-2 mt-0 items-start overflow-y-auto nc-scrollbar-thin" :style="{ - maxHeight: `max(100%, ${isGrid ? '22px' : '32px'})`, + height: `max(${!rowHeight || rowHeight === 1 ? rowHeightInPx['1']: rowHeightInPx[`${rowHeight}`] - 17}px, ${isGrid ? 22 : 32}px)`, + paddingTop: !rowHeight || rowHeight === 1 ? '4px !important' : undefined, + paddingBottom: !rowHeight || rowHeight === 1 ? '4px !important' : undefined, }" > - +
+
- +
diff --git a/packages/nc-gui/components/workspace/integrations/ConnectionsTab.vue b/packages/nc-gui/components/workspace/integrations/ConnectionsTab.vue index e219210d9e..c5ea772a2e 100644 --- a/packages/nc-gui/components/workspace/integrations/ConnectionsTab.vue +++ b/packages/nc-gui/components/workspace/integrations/ConnectionsTab.vue @@ -464,7 +464,6 @@ onKeyStroke('ArrowDown', onDown)