From 2012b1c3ca2b05a75900b22f11069369e386314a Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 23 Jun 2023 21:59:45 +0530 Subject: [PATCH 1/6] fix: avoid attachment overflow and showing scrollbar Signed-off-by: Pranav C --- packages/nc-gui/components/cell/attachment/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index 9a4f2659c3..463e806333 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -192,7 +192,11 @@ useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e) => {
- +
From c0756eab30cc95ad722d7655927ae297a493f3a7 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 23 Jun 2023 22:07:07 +0530 Subject: [PATCH 2/6] fix: hide system fields from search field filter Signed-off-by: Pranav C --- .../components/smartsheet/toolbar/SearchData.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue index 0612387bf9..9a84f81f14 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue @@ -1,4 +1,5 @@ + + diff --git a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue index 9a84f81f14..da24d397f4 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue @@ -35,6 +35,7 @@ const columns = computed(() => .map((column) => ({ value: column.id, label: column.title, + column, })), ) @@ -70,10 +71,16 @@ function onPressEnter() { :open="isDropdownOpen" size="small" :dropdown-match-select-width="false" - :options="columns" dropdown-class-name="!py-0 !rounded nc-dropdown-toolbar-search-field-option" class="!absolute top-0 left-0 w-full h-full z-10 !text-xs opacity-0" - /> + > + +
+ + {{ op.label }} +
+
+
Date: Sat, 24 Jun 2023 12:15:23 +0530 Subject: [PATCH 4/6] refactor: limit display value in message to 20chars Signed-off-by: Pranav C --- packages/nc-gui/composables/useExpandedFormStore.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index 43a60991cc..1d39f265a1 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -267,7 +267,11 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m addOrEditStackRow(row.value, isNewRow) } - message.success(`${displayValue.value || 'Row'} updated successfully.`) + // trim the display value if greater than 20chars + const trimmedDisplayValue = + displayValue.value && displayValue.value?.length > 20 ? `${displayValue.value?.substring(0, 20)}...` : displayValue.value + + message.success(`${trimmedDisplayValue || 'Row'} updated successfully.`) changedColumns.value = new Set() } catch (e: any) { From 844b461cbfd8bc18f956a9027cf7052a6411c803 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 24 Jun 2023 16:45:24 +0530 Subject: [PATCH 5/6] refactor: attachment column item size Signed-off-by: Pranav C --- .../components/cell/attachment/index.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index 463e806333..af4f0aefcb 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -1,5 +1,6 @@