fix(BalanceSheet): dynamic columns width.

This commit is contained in:
a.bouhuolia
2022-01-29 21:35:31 +02:00
parent 066df28257
commit 34501a9a61
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ const getReportColWidth = (data, accessor, headerText) => {
return getColumnWidth(
data,
accessor,
{ magicSpacing: 10, minWidth: 100 },
{ magicSpacing: 9, minWidth: 100 },
headerText,
);
};
@@ -137,7 +137,7 @@ const totalMapper = R.curry((data, column) => {
Cell: CellTextSpan,
width,
disableSortBy: true,
align: hasChildren ? Align.Center : Align.Left,
align: hasChildren ? Align.Center : Align.Right,
};
return R.compose(
R.when(R.always(hasChildren), assocColumnsToTotalColumn(data, column)),

View File

@@ -10,7 +10,7 @@ const getReportColWidth = (data, accessor, labelText) => {
return getColumnWidth(
data,
accessor,
{ magicSpacing: 10, minWidth: 100 },
{ magicSpacing: 9, minWidth: 100 },
labelText,
);
};