2
0
mirror of https://github.com/frappe/books.git synced 2025-01-22 22:58:28 +00:00

fix: Truncate overflowing ListCell

This commit is contained in:
Faris Ansari 2019-12-04 00:16:48 +05:30
parent 1632b3eb82
commit 4e0af18983
2 changed files with 5 additions and 7 deletions

View File

@ -37,11 +37,9 @@
<ListCell
v-for="column in columns"
:key="column.label"
:class="
['Float', 'Currency'].includes(column.fieldtype)
? 'text-right'
: ''
"
:class="{
'text-right': ['Float', 'Currency'].includes(column.fieldtype)
}"
:doc="doc"
:column="column"
></ListCell>

View File

@ -1,6 +1,6 @@
<template>
<div class="py-4 flex items-center" :class="cellClass">
<span v-if="!customRenderer">{{ columnValue }}</span>
<div class="py-4 flex items-center truncate" :class="cellClass">
<span class="truncate" v-if="!customRenderer">{{ columnValue }}</span>
<component v-else :is="customRenderer" />
</div>
</template>