mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
fix(BalanceSheet): dynamic columns width.
This commit is contained in:
@@ -14,7 +14,7 @@ const getReportColWidth = (data, accessor, headerText) => {
|
|||||||
return getColumnWidth(
|
return getColumnWidth(
|
||||||
data,
|
data,
|
||||||
accessor,
|
accessor,
|
||||||
{ magicSpacing: 10, minWidth: 100 },
|
{ magicSpacing: 9, minWidth: 100 },
|
||||||
headerText,
|
headerText,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -137,7 +137,7 @@ const totalMapper = R.curry((data, column) => {
|
|||||||
Cell: CellTextSpan,
|
Cell: CellTextSpan,
|
||||||
width,
|
width,
|
||||||
disableSortBy: true,
|
disableSortBy: true,
|
||||||
align: hasChildren ? Align.Center : Align.Left,
|
align: hasChildren ? Align.Center : Align.Right,
|
||||||
};
|
};
|
||||||
return R.compose(
|
return R.compose(
|
||||||
R.when(R.always(hasChildren), assocColumnsToTotalColumn(data, column)),
|
R.when(R.always(hasChildren), assocColumnsToTotalColumn(data, column)),
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const getReportColWidth = (data, accessor, labelText) => {
|
|||||||
return getColumnWidth(
|
return getColumnWidth(
|
||||||
data,
|
data,
|
||||||
accessor,
|
accessor,
|
||||||
{ magicSpacing: 10, minWidth: 100 },
|
{ magicSpacing: 9, minWidth: 100 },
|
||||||
labelText,
|
labelText,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user