Browse Source

fix: remove additional divider from cell context menu #7253

pull/7270/head
Ramesh Mane 11 months ago
parent
commit
0c897b4906
  1. 9
      packages/nc-gui/components/smartsheet/grid/Table.vue

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

@ -1748,17 +1748,16 @@ onKeyStroke('ArrowDown', onDown)
{{ $t('general.clear') }} {{ $t('general.clear') }}
</div> </div>
</NcMenuItem> </NcMenuItem>
<template v-if="contextMenuTarget && selectedRange.isSingleCell() && isUIAllowed('commentEdit') && !isMobileMode">
<NcDivider /> <NcDivider />
<NcMenuItem <NcMenuItem class="nc-base-menu-item" @click="commentRow(contextMenuTarget.row)">
v-if="contextMenuTarget && selectedRange.isSingleCell() && isUIAllowed('commentEdit') && !isMobileMode"
class="nc-base-menu-item"
@click="commentRow(contextMenuTarget.row)"
>
<div v-e="['a:row:comment']" class="flex gap-2 items-center"> <div v-e="['a:row:comment']" class="flex gap-2 items-center">
<MdiMessageOutline class="h-4 w-4" /> <MdiMessageOutline class="h-4 w-4" />
{{ $t('general.comment') }} {{ $t('general.comment') }}
</div> </div>
</NcMenuItem> </NcMenuItem>
</template>
<template v-if="hasEditPermission"> <template v-if="hasEditPermission">
<NcDivider v-if="!(!contextMenuClosing && !contextMenuTarget && data.some((r) => r.rowMeta.selected))" /> <NcDivider v-if="!(!contextMenuClosing && !contextMenuTarget && data.some((r) => r.rowMeta.selected))" />

Loading…
Cancel
Save