Browse Source

fix: prevent input hieght on focus

pull/6500/head
sreehari jayaraj 12 months 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,
'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,
},
]"

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"
:style="{
'borderRightWidth': '0px !important',
'height': '54px',
'min-height': '54px',
'height': '70px',
'max-height': '250px',
'resize': 'vertical',
}"
size="large"
@ -768,7 +768,7 @@ watch(view, (nextView) => {
</LazySmartsheetDivDataCell>
</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 }}
</div>
</div>

Loading…
Cancel
Save