From 25a00839c3fda926bc8a23ed607f4ecd5a3151b1 Mon Sep 17 00:00:00 2001
From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com>
Date: Thu, 22 Feb 2024 16:16:54 +0000
Subject: [PATCH] fix(nc-gui): enable scanner form field option ui changes and
prevent enter key on lable & helper text
---
.../nc-gui/components/smartsheet/Form.vue | 56 +++++++++++--------
1 file changed, 32 insertions(+), 24 deletions(-)
diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue
index eda650d098..f354d758ff 100644
--- a/packages/nc-gui/components/smartsheet/Form.vue
+++ b/packages/nc-gui/components/smartsheet/Form.vue
@@ -668,30 +668,6 @@ const onFormItemClick = (element: any) => {
-
-
-
{
- element.general.enable_scanner = !element.general.enable_scanner
- updateColMeta(element)
- }
- "
- >
- {{ $t('general.enableScanner') }}
-
-
-
-
-
-
{
class="form-meta-input nc-form-input-label"
data-testid="nc-form-input-label"
:placeholder="$t('msg.info.formInput')"
+ @keydown.enter.prevent
@change="updateColMeta(element)"
/>
@@ -714,9 +691,35 @@ const onFormItemClick = (element: any) => {
class="form-meta-input text-sm nc-form-input-help-text"
data-testid="nc-form-input-help-text"
:placeholder="$t('msg.info.formHelpText')"
+ @keydown.enter.prevent
@change="updateColMeta(element)"
/>
+
+
+
+
{
+ element.general.enable_scanner = !element.general.enable_scanner
+ updateColMeta(element)
+ }
+ "
+ >
+ {{ $t('general.enableScanner') }}
+
+
+
{
}
}
+.nc-form-input-enable-scanner-form-item {
+ :deep(.ant-form-item-control-input) {
+ @apply min-h-max;
+ }
+}
:deep(.nc-form-right-splitpane .splitpanes__splitter) {
@apply !border-t-1 !border-gray-200 relative;