Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add whitespace-pre to table cell (#9303)

boojack8ea271983625
diff --git a/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue b/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
index ce15f40aa8..4a6db2b99a 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ResultView/DataTable/TableCell.vue
@@ -1,7 +1,11 @@
+<!-- eslint-disable vue/no-v-html -->
<template>
<div class="relative px-2 py-1" :class="classes" @click="handleClick">
- <!-- eslint-disable-next-line vue/no-v-html -->
- <div ref="wrapperRef" class="overflow-hidden" v-html="html"></div>
+ <div
+ ref="wrapperRef"
+ class="overflow-hidden whitespace-pre"
+ v-html="html"
+ ></div>
<div v-if="clickable" class="absolute right-1 top-1/2 translate-y-[-45%]">
<NButton size="tiny" circle class="dark:!bg-dark-bg" @click="showDetail">
<template #icon>