diff --git a/src/cellmanager.js b/src/cellmanager.js
index 11d0ac0..c5b81bd 100644
--- a/src/cellmanager.js
+++ b/src/cellmanager.js
@@ -773,13 +773,14 @@ export default class CellManager {
if (this.options.treeView && !(isHeader || isFilter) && cell.indent !== undefined) {
const nextRow = this.datamanager.getRow(cell.rowIndex + 1);
const addToggle = nextRow && nextRow.meta.indent > cell.indent;
+ const leftPadding = 1;
// Add toggle and indent in the first column
const firstColumnIndex = this.datamanager.getColumnIndexById('_rowIndex') + 1;
if (firstColumnIndex === cell.colIndex) {
- const padding = ((cell.indent || 0) + 1) * 1.5;
+ const padding = ((cell.indent || 0) + 1) * leftPadding;
const toggleHTML = addToggle ?
- `` : '';
+ `` : '';
contentHTML = `
${toggleHTML}${contentHTML}`;
}
diff --git a/src/style.css b/src/style.css
index 0f8ef1b..cc82a3e 100644
--- a/src/style.css
+++ b/src/style.css
@@ -193,7 +193,7 @@
display: inline-block;
position: absolute;
font-size: 10px;
- padding: 0 4px;
+ padding: 2px;
cursor: pointer;
}