Browse Source

feat: visual distinction between NULL and empty string

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4908/head
mertmit 2 years ago
parent
commit
1350e1ab1e
  1. 2
      packages/nc-gui/components/cell/Text.vue
  2. 2
      packages/nc-gui/components/cell/TextArea.vue

2
packages/nc-gui/components/cell/Text.vue

@ -38,5 +38,7 @@ const focus: VNodeRef = (el) => {
@mousedown.stop
/>
<span v-else-if="vModel === null" class="text-gray-300 italic">NULL</span>
<LazyCellClampedText v-else :value="vModel" :lines="1" />
</template>

2
packages/nc-gui/components/cell/TextArea.vue

@ -55,6 +55,8 @@ const rowHeight = computed(() => {
@mousedown.stop
/>
<span v-else-if="vModel === null" class="text-gray-300 italic">NULL</span>
<LazyCellClampedText v-else-if="rowHeight" :value="vModel" :lines="rowHeight" />
<span v-else>{{ vModel }}</span>

Loading…
Cancel
Save