2
0
mirror of https://github.com/frappe/books.git synced 2025-02-02 12:08:27 +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 <ListCell
v-for="column in columns" v-for="column in columns"
:key="column.label" :key="column.label"
:class=" :class="{
['Float', 'Currency'].includes(column.fieldtype) 'text-right': ['Float', 'Currency'].includes(column.fieldtype)
? 'text-right' }"
: ''
"
:doc="doc" :doc="doc"
:column="column" :column="column"
></ListCell> ></ListCell>

View File

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