Browse Source

fix: generic ui fixes

pull/6500/head
sreehari jayaraj 1 year ago
parent
commit
1952010a65
  1. 3
      packages/nc-gui/components/cell/Integer.vue
  2. 8
      packages/nc-gui/components/smartsheet/grid/Table.vue

3
packages/nc-gui/components/cell/Integer.vue

@ -87,6 +87,9 @@ function onKeyDown(e: any) {
v-model="vModel"
class="outline-none py-2 px-1 border-none w-full h-full text-sm"
type="number"
:class="{
'pl-2': isExpandedFormOpen,
}"
style="letter-spacing: 0.06rem"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="editEnabled = false"

8
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -1595,8 +1595,12 @@ const handleCellClick = (event: MouseEvent, row: number, col: number) => {
{{ $t('activity.deleteRow') }}
</NcMenuItem>
<div v-else-if="contextMenuTarget && deleteRangeOfRows">
<NcMenuItem v-e="['a:row:delete']" class="nc-project-menu-item text-red-600" @click="deleteSelectedRangeOfRows">
<GeneralIcon icon="delete" class="text-gray-500 text-error" />
<NcMenuItem
v-e="['a:row:delete']"
class="nc-project-menu-item !text-red-600 !hover:bg-red-50"
@click="deleteSelectedRangeOfRows"
>
<GeneralIcon icon="delete" class="text-gray-500 text-red-600" />
<!-- Delete Rows -->
{{ $t('activity.deleteRows') }}
</NcMenuItem>

Loading…
Cancel
Save