diff --git a/api/js/etemplate/Et2Tree/Et2Tree.styles.ts b/api/js/etemplate/Et2Tree/Et2Tree.styles.ts index d50da6aafe..39214ca6bc 100644 --- a/api/js/etemplate/Et2Tree/Et2Tree.styles.ts +++ b/api/js/etemplate/Et2Tree/Et2Tree.styles.ts @@ -6,11 +6,19 @@ export default css` display: block; } - +/* Style expand and collapse buttons so we can use technically larger images to increase clickable surface*/ ::part(expand-button) { rotate: none; padding: 0 var(--sl-spacing-small); + width: 5em; + height: 1.2em; + margin-left: -2.4em; + margin-right: calc(-2em + 10px); } + sl-icon[slot='collapse-icon'],sl-icon[slot='expand-icon']{ + width: inherit; + height: inherit; + } /* 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*/ diff --git a/api/js/etemplate/Et2Tree/Et2Tree.ts b/api/js/etemplate/Et2Tree/Et2Tree.ts index a3de61e3bc..5a19413c8d 100644 --- a/api/js/etemplate/Et2Tree/Et2Tree.ts +++ b/api/js/etemplate/Et2Tree/Et2Tree.ts @@ -1112,8 +1112,8 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) implements Fin @dragleave=${(event) => {this.handleDragEvent(event);}} @drop=${(event) => {this.handleDragEvent(event);}} > - - + + ${repeat(this._selectOptions, (o) => o.value, this._optionTemplate)} diff --git a/api/templates/default/images/bi-chevron-down.svg b/api/templates/default/images/bi-chevron-down.svg new file mode 100644 index 0000000000..6256e333bd --- /dev/null +++ b/api/templates/default/images/bi-chevron-down.svg @@ -0,0 +1,4 @@ + + + + diff --git a/api/templates/default/images/bi-chevron-right.svg b/api/templates/default/images/bi-chevron-right.svg new file mode 100644 index 0000000000..62917544c0 --- /dev/null +++ b/api/templates/default/images/bi-chevron-right.svg @@ -0,0 +1,4 @@ + + + +