Browse Source

fix: prevent input hieght on focus

pull/6500/head
sreehari jayaraj 1 year ago
parent
commit
5eaa33320d
  1. 2
      packages/nc-gui/components/smartsheet/Cell.vue
  2. 6
      packages/nc-gui/components/smartsheet/Form.vue

2
packages/nc-gui/components/smartsheet/Cell.vue

@ -203,7 +203,7 @@ onUnmounted(() => {
{ {
'text-brand-500': isPrimary(column) && !props.virtual && !isForm, 'text-brand-500': isPrimary(column) && !props.virtual && !isForm,
'nc-grid-numeric-cell-right': isGrid && isNumericField && !isEditColumnMenu && !isForm && !isExpandedFormOpen, 'nc-grid-numeric-cell-right': isGrid && isNumericField && !isEditColumnMenu && !isForm && !isExpandedFormOpen,
'h-[40px]': !props.editEnabled && isForm && !isSurveyForm && !isAttachment(column) && !props.virtual, 'h-[40px]': isForm && !isSurveyForm && !isAttachment(column) && !props.virtual,
'nc-grid-numeric-cell-left': (isForm && isNumericField && isExpandedFormOpen) || isEditColumnMenu, 'nc-grid-numeric-cell-left': (isForm && isNumericField && isExpandedFormOpen) || isEditColumnMenu,
}, },
]" ]"

6
packages/nc-gui/components/smartsheet/Form.vue

@ -552,8 +552,8 @@ watch(view, (nextView) => {
class="w-full !font-bold !text-4xl !border-0 !border-b-1 !border-dashed !rounded-none !border-gray-400" class="w-full !font-bold !text-4xl !border-0 !border-b-1 !border-dashed !rounded-none !border-gray-400"
:style="{ :style="{
'borderRightWidth': '0px !important', 'borderRightWidth': '0px !important',
'height': '54px', 'height': '70px',
'min-height': '54px', 'max-height': '250px',
'resize': 'vertical', 'resize': 'vertical',
}" }"
size="large" size="large"
@ -768,7 +768,7 @@ watch(view, (nextView) => {
</LazySmartsheetDivDataCell> </LazySmartsheetDivDataCell>
</a-form-item> </a-form-item>
<div class="nc-form-help-text text-gray-500 text-xs" data-testid="nc-form-input-help-text-label"> <div class="nc-form-help-text text-gray-500 text-xs truncate" data-testid="nc-form-input-help-text-label">
{{ element.description }} {{ element.description }}
</div> </div>
</div> </div>

Loading…
Cancel
Save