Skip to content

Commit 7948458

Browse files
committed
fix: improve clicking expirience on TR
1 parent 34446cc commit 7948458

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

custom/ListCell.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<template>
2-
<div class="relative group flex items-center" @click.stop>
2+
<div class="relative group flex items-center">
33
<!-- Normal value display -->
4-
<div v-if="!isEditing" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
4+
<div v-if="column.editReadonly" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
5+
{{ limitedText? limitedText : '-' }}
6+
</div>
7+
8+
<div @click.stop="startEdit()"
9+
v-else-if="!isEditing" class="flex items-center" :class="limitedText?.length > 50 ? 'min-w-48 max-w-full' : 'min-w-32'">
510
{{ limitedText? limitedText : '-' }}
611

712
<span v-if="meta?.reviewedCheckboxesFieldName && limitedText" class="flex items-center ml-2">
@@ -31,7 +36,7 @@
3136
</div>
3237

3338
<!-- Edit mode -->
34-
<div v-else class="flex flex-col gap-2">
39+
<div v-else class="flex flex-col gap-2" @click.stop>
3540
<div class="flex items-center max-w-full gap-2"
3641
:class="limitedText?.length > 50 ? 'min-w-72' : 'min-w-64'"
3742
ref="inputHolder"

0 commit comments

Comments
 (0)