Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Fix: Width Column SB (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricargame authored Sep 30, 2024
1 parent e301d2f commit 626de5b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/ADempiere/DataTable/Browser/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,13 @@ export default defineComponent({
})
})
function widthColumn(fieldAttributes) {
const { componentPath } = fieldAttributes
if (['FieldSearch', 'FieldAccountingCombination'].includes(componentPath)) return '500'
return '250'
const { name } = fieldAttributes
const size = 12
let caracter = name.length
if (caracter <= 9) {
caracter = 10
}
return caracter * size
}
const selectionsLength = computed(() => {
return props.containerManager.getSelection({
Expand Down Expand Up @@ -565,5 +569,8 @@ export default defineComponent({
.el-table thead tr {
height: 40px!important
}
.el-table td.el-table__cell{
padding: 0 !important
}
}
</style>

0 comments on commit 626de5b

Please sign in to comment.