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:
parent
1632b3eb82
commit
4e0af18983
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user