From 03c568159a965469515c00280817e38fbe6cbe51 Mon Sep 17 00:00:00 2001 From: chintankavathia Date: Tue, 25 Aug 2026 17:30:12 +0530 Subject: [PATCH] fix(tree-view): align items with and without folder state toggle The start toggle slot was hardcoded to 24px while the toggle icon renders at `--si-tree-view-icon-size` (1.25rem). Leaf items were therefore indented 4px more than their foldable siblings on the same level. Reserve the actual icon size instead, so the slot also scales with the root font size and a custom icon size. Closes #2550 --- .../si-tree-view-item.component.html | 2 +- .../si-tree-view-item.component.ts | 26 ++++++++++++------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/projects/element-ng/tree-view/si-tree-view-item/si-tree-view-item.component.html b/projects/element-ng/tree-view/si-tree-view-item/si-tree-view-item.component.html index 06d40a6526..c40c337a4f 100644 --- a/projects/element-ng/tree-view/si-tree-view-item/si-tree-view-item.component.html +++ b/projects/element-ng/tree-view/si-tree-view-item/si-tree-view-item.component.html @@ -19,7 +19,7 @@