Browse Source

fix(gui): align numeric fields left in expanded form

isGrid will be true and isForm will be true when inside expanded form

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4968/head
Pranav C 2 years ago
parent
commit
ac9aa0f46d
  1. 2
      packages/nc-gui/components/smartsheet/Cell.vue
  2. 2
      packages/nc-gui/components/smartsheet/VirtualCell.vue

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

@ -145,7 +145,7 @@ const isNumericField = computed(() => {
:class="[
`nc-cell-${(column?.uidt || 'default').toLowerCase()}`,
{ 'text-blue-600': isPrimary(column) && !props.virtual && !isForm },
{ 'nc-grid-numeric-cell': isGrid && isNumericField },
{ 'nc-grid-numeric-cell': isGrid && !isForm && isNumericField },
]"
@keydown.enter.exact="syncAndNavigate(NavigateDir.NEXT, $event)"
@keydown.shift.enter.exact="syncAndNavigate(NavigateDir.PREV, $event)"

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

@ -55,7 +55,7 @@ function onNavigate(dir: NavigateDir, e: KeyboardEvent) {
<template>
<div
class="nc-virtual-cell w-full flex items-center"
:class="{ 'text-right justify-end': isGrid && isRollup(column) }"
:class="{ 'text-right justify-end': isGrid && !isForm && isRollup(column) }"
@keydown.enter.exact="onNavigate(NavigateDir.NEXT, $event)"
@keydown.shift.enter.exact="onNavigate(NavigateDir.PREV, $event)"
>

Loading…
Cancel
Save