From c4a18fe896dc06a454ebe01d423e1496d8555480 Mon Sep 17 00:00:00 2001 From: milan Date: Thu, 11 Jul 2024 12:58:30 +0200 Subject: [PATCH] increase et2-tree icon size by 2px in the new tree --- api/js/etemplate/Et2Tree/Et2Tree.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Tree/Et2Tree.ts b/api/js/etemplate/Et2Tree/Et2Tree.ts index dd9a77c3ac..9186e3aa82 100644 --- a/api/js/etemplate/Et2Tree/Et2Tree.ts +++ b/api/js/etemplate/Et2Tree/Et2Tree.ts @@ -222,15 +222,17 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) ::part(expand-button) { rotate: none; - padding: 0 0 0 5em; + padding: 0 0.2em 0 5em; margin-left: -5em; } /* Stop icon from shrinking if there's not enough space */ + /* increase font size by 2px this was previously done in pixelegg css but document css can not reach shadow root*/ sl-tree-item sl-icon { flex: 0 0 1em; + font-size: calc(100% + 2px); } ::part(label) {