Browse Source

fix(gui-v2): show record index always if grid in readonly mode

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3448/head
Pranav C 2 years ago
parent
commit
164de333ab
  1. 4
      packages/nc-gui-v2/components/smartsheet/Grid.vue

4
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -397,7 +397,7 @@ const showContextMenu = (e: MouseEvent, target?: { row: number; col: number }) =
<div <div
v-if="!readOnly || !isLocked" v-if="!readOnly || !isLocked"
class="nc-row-no text-xs text-gray-500" class="nc-row-no text-xs text-gray-500"
:class="{ hidden: row.rowMeta.selected }" :class="{ toggle: !readOnly, hidden: row.rowMeta.selected }"
> >
{{ rowIndex + 1 }} {{ rowIndex + 1 }}
</div> </div>
@ -620,7 +620,7 @@ const showContextMenu = (e: MouseEvent, target?: { row: number; col: number }) =
} }
&:hover { &:hover {
.nc-row-no { .nc-row-no.toggle {
@apply hidden; @apply hidden;
} }

Loading…
Cancel
Save