Browse Source

feat: Preserve newline in longtext cell

re #430

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/441/head
Pranav C 3 years ago
parent
commit
dce6c3f72a
  1. 5
      packages/nc-gui/components/project/spreadsheet/components/cell.vue

5
packages/nc-gui/components/project/spreadsheet/components/cell.vue

@ -12,7 +12,7 @@
<enum-cell v-else-if="isEnum" :value="value" :column="column" @click.stop="$emit('enableedit')" /> <enum-cell v-else-if="isEnum" :value="value" :column="column" @click.stop="$emit('enableedit')" />
<url-cell v-else-if="isURL" :value="value" /> <url-cell v-else-if="isURL" :value="value" />
<json-cell v-else-if="isJSON" :value="value" /> <json-cell v-else-if="isJSON" :value="value" />
<span v-else>{{ value }}</span> <span v-else :class="{'long-text-cell' : isTextArea}">{{ value }}</span>
</template> </template>
<script> <script>
@ -33,6 +33,9 @@ export default {
</script> </script>
<style scoped> <style scoped>
.long-text-cell{
white-space: pre;
}
</style> </style>
<!-- <!--
/** /**

Loading…
Cancel
Save