From 5d21d179d4f51ab2d8d3c51f3769eae53172ea14 Mon Sep 17 00:00:00 2001
From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com>
Date: Wed, 5 Jun 2024 21:06:39 +0530
Subject: [PATCH] Nc fix: UI/UX minor fixes (#8648)
* fix(nc-gui): update field modal radio input disable state bg
* fix(nc-gui): new record dropdown btn icon alignment issue
* fix(nc-gui): duplicate expanded record comment update & query param update issue
* fix(nc-gui): udpate expanded form width if comment section is enabled
* fix(nc-gui): show single line text in hover gray state when we open the add modal
* fix(nc-gui): add divider in comment more option dropdown
* fix(nc-gui): show tooltip on hover over comment username
* fix(nc-gui): oo relation link dropdown count update issue
---
.../nc-gui/components/smartsheet/Gallery.vue | 1 +
.../nc-gui/components/smartsheet/Kanban.vue | 1 +
packages/nc-gui/components/smartsheet/Map.vue | 1 +
.../components/smartsheet/calendar/index.vue | 1 +
.../smartsheet/column/DateTimeOptions.vue | 2 +-
.../smartsheet/column/EditOrAdd.vue | 4 ++--
.../column/LinkedToAnotherRecordOptions.vue | 2 +-
.../smartsheet/column/TimeOptions.vue | 2 +-
.../column/UITypesOptionsWithSearch.vue | 4 ++--
.../smartsheet/expanded-form/Comments.vue | 14 +++++++++++---
.../smartsheet/expanded-form/index.vue | 19 +++++++++++++++++--
.../components/smartsheet/grid/Table.vue | 8 ++++++--
.../components/smartsheet/grid/index.vue | 1 +
.../virtual-cell/components/Header.vue | 13 +++++++++----
.../virtual-cell/components/UnLinkedItems.vue | 4 ++++
15 files changed, 59 insertions(+), 18 deletions(-)
diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue
index f9b22b5269..df749761c1 100644
--- a/packages/nc-gui/components/smartsheet/Gallery.vue
+++ b/packages/nc-gui/components/smartsheet/Gallery.vue
@@ -357,6 +357,7 @@ watch(
:row-id="route.query.rowId"
:view="view"
show-next-prev-icons
+ :expand-form="expandForm"
@next="navigateToSiblingRow(NavigateDir.NEXT)"
@prev="navigateToSiblingRow(NavigateDir.PREV)"
/>
diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue
index 60c7a01f3a..c59b8c4378 100644
--- a/packages/nc-gui/components/smartsheet/Kanban.vue
+++ b/packages/nc-gui/components/smartsheet/Kanban.vue
@@ -740,6 +740,7 @@ const getRowId = (row: RowType) => {
:load-row="!isPublic"
:row="expandedFormRow ?? { row: {}, oldRow: {}, rowMeta: {} }"
:meta="meta"
+ :expand-form="expandForm"
:row-id="route.query.rowId"
:view="view"
/>
diff --git a/packages/nc-gui/components/smartsheet/Map.vue b/packages/nc-gui/components/smartsheet/Map.vue
index fec0c0df43..409f2cc264 100644
--- a/packages/nc-gui/components/smartsheet/Map.vue
+++ b/packages/nc-gui/components/smartsheet/Map.vue
@@ -251,6 +251,7 @@ const count = computed(() => paginationData.value.totalRows)
:meta="meta"
:load-row="!isPublic"
:row-id="route.query.rowId"
+ :expand-form="expandForm"
:view="view"
/>
diff --git a/packages/nc-gui/components/smartsheet/calendar/index.vue b/packages/nc-gui/components/smartsheet/calendar/index.vue
index a45afb393f..c4fea0d287 100644
--- a/packages/nc-gui/components/smartsheet/calendar/index.vue
+++ b/packages/nc-gui/components/smartsheet/calendar/index.vue
@@ -193,6 +193,7 @@ reloadViewDataHook?.on(async (params: void | { shouldShowLoading?: boolean }) =>
rowMeta: {},
}"
:row-id="route.query.rowId"
+ :expand-form="expandRecord"
:view="view"
/>
diff --git a/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue b/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue
index d482c4d287..8ecb98be33 100644
--- a/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue
+++ b/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue
@@ -77,7 +77,7 @@ if (vModel.value.meta?.is12hrFormat === undefined) {
-
+.nc-grid-add-new-row {
+ :deep(.ant-btn.ant-dropdown-trigger.ant-btn-icon-only){
+ @apply !flex items-center justify-center;
+ }
+}
+
diff --git a/packages/nc-gui/components/smartsheet/grid/index.vue b/packages/nc-gui/components/smartsheet/grid/index.vue
index aca5b6bbb8..c7118a2f75 100644
--- a/packages/nc-gui/components/smartsheet/grid/index.vue
+++ b/packages/nc-gui/components/smartsheet/grid/index.vue
@@ -257,6 +257,7 @@ const goToPreviousRow = () => {
show-next-prev-icons
:first-row="isFirstRow"
:last-row="islastRow"
+ :expand-form="expandForm"
@next="goToNextRow()"
@prev="goToPreviousRow()"
/>
diff --git a/packages/nc-gui/components/virtual-cell/components/Header.vue b/packages/nc-gui/components/virtual-cell/components/Header.vue
index 505057ccfb..1ef6b8c920 100644
--- a/packages/nc-gui/components/virtual-cell/components/Header.vue
+++ b/packages/nc-gui/components/virtual-cell/components/Header.vue
@@ -1,6 +1,4 @@