mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix(BalanceSheet): columns width based in cells contents.
This commit is contained in:
@@ -439,9 +439,11 @@ export const getColumnWidth = (
|
||||
rows,
|
||||
accessor,
|
||||
{ maxWidth, minWidth, magicSpacing = 14 },
|
||||
headerText = ''
|
||||
) => {
|
||||
const cellLength = Math.max(
|
||||
...rows.map((row) => (`${_.get(row, accessor)}` || '').length),
|
||||
headerText.length
|
||||
);
|
||||
let result = cellLength * magicSpacing;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user