Browse Source

fix: refactor class

pull/6360/head
DarkPhoenix2704 1 year ago
parent
commit
0d2aa1ab7b
  1. 6
      packages/nc-gui/components/smartsheet/Cell.vue

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

@ -200,12 +200,12 @@ onUnmounted(() => {
class="nc-cell w-full h-full relative"
:class="[
`nc-cell-${(column?.uidt || 'default').toLowerCase()}`,
{ 'text-brand-500': isPrimary(column) && !props.virtual && !isForm },
{ 'nc-grid-numeric-cell-right': isGrid && isNumericField && !isEditColumnMenu && !isForm && !isExpandedFormOpen },
{
'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,
'nc-grid-numeric-cell-left': (isForm && isNumericField && isExpandedFormOpen) || isEditColumnMenu,
},
{ 'nc-grid-numeric-cell-left': (isForm && isNumericField && isExpandedFormOpen) || isEditColumnMenu },
]"
@keydown.enter.exact="navigate(NavigateDir.NEXT, $event)"
@keydown.shift.enter.exact="navigate(NavigateDir.PREV, $event)"

Loading…
Cancel
Save