Browse Source

Refactored the removal of h-full to outer level

pull/5531/head
nith2001 2 years ago
parent
commit
615f5d58bb
  1. 2
      packages/nc-gui/components/smartsheet/Cell.vue
  2. 4
      packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue

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

@ -188,7 +188,7 @@ onUnmounted(() => {
<template> <template>
<div <div
ref="elementToObserve" ref="elementToObserve"
class="nc-cell w-full relative" class="nc-cell w-full h-full relative"
:class="[ :class="[
`nc-cell-${(column?.uidt || 'default').toLowerCase()}`, `nc-cell-${(column?.uidt || 'default').toLowerCase()}`,
{ 'text-blue-600': isPrimary(column) && !props.virtual && !isForm }, { 'text-blue-600': isPrimary(column) && !props.virtual && !isForm },

4
packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue

@ -287,7 +287,7 @@ onMounted(() => {
<LazySmartsheetVirtualCell <LazySmartsheetVirtualCell
v-if="isVirtualCol(field)" v-if="isVirtualCol(field)"
v-model="formState[field.title]" v-model="formState[field.title]"
class="mt-0 nc-input" class="mt-0 nc-input h-auto"
:row="{ row: {}, oldRow: {}, rowMeta: {} }" :row="{ row: {}, oldRow: {}, rowMeta: {} }"
:data-testid="`nc-survey-form__input-${field.title.replaceAll(' ', '')}`" :data-testid="`nc-survey-form__input-${field.title.replaceAll(' ', '')}`"
:column="field" :column="field"
@ -296,7 +296,7 @@ onMounted(() => {
<LazySmartsheetCell <LazySmartsheetCell
v-else v-else
v-model="formState[field.title]" v-model="formState[field.title]"
class="nc-input" class="nc-input h-auto"
:data-testid="`nc-survey-form__input-${field.title.replaceAll(' ', '')}`" :data-testid="`nc-survey-form__input-${field.title.replaceAll(' ', '')}`"
:column="field" :column="field"
:edit-enabled="editEnabled[index]" :edit-enabled="editEnabled[index]"

Loading…
Cancel
Save