Browse Source

refactor(nc-gui): show audit desc better

pull/5403/head
Wing-Kam Wong 2 years ago
parent
commit
aeeadbd7c1
  1. 15
      packages/nc-gui/components/dashboard/settings/AuditTab.vue

15
packages/nc-gui/components/dashboard/settings/AuditTab.vue

@ -67,6 +67,7 @@ const columns = [
title: tableHeaderRenderer(t('labels.description')), title: tableHeaderRenderer(t('labels.description')),
dataIndex: 'description', dataIndex: 'description',
key: 'description', key: 'description',
customRender: (value: { text: string }) => h('pre', {}, value.text),
}, },
{ {
// User // User
@ -83,6 +84,7 @@ const columns = [
sort: 'desc', sort: 'desc',
customRender: (value: { text: string }) => customRender: (value: { text: string }) =>
h(ATooltip, { placement: 'bottom', title: h('span', {}, value.text) }, () => timeAgo(value.text)), h(ATooltip, { placement: 'bottom', title: h('span', {}, value.text) }, () => timeAgo(value.text)),
width: '10%',
}, },
] ]
</script> </script>
@ -110,7 +112,7 @@ const columns = [
</div> </div>
<a-table <a-table
class="w-full" class="nc-audit-table w-full"
size="small" size="small"
:data-source="audits ?? []" :data-source="audits ?? []"
:columns="columns" :columns="columns"
@ -124,3 +126,14 @@ const columns = [
</a-table> </a-table>
</div> </div>
</template> </template>
<style lang="scss">
.nc-audit-table pre {
display: table;
table-layout: fixed;
width: 100%;
white-space: break-spaces;
font-size: unset;
font-family: unset;
}
</style>

Loading…
Cancel
Save