From 9388a8f93035c05dc1c4b0396578b84f84068e27 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 16 Jul 2024 21:37:30 +0200 Subject: [PATCH] better placement and a little bigger line-height --- api/js/egw_action/EgwMenuShoelace.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/api/js/egw_action/EgwMenuShoelace.ts b/api/js/egw_action/EgwMenuShoelace.ts index f9ee158f7e..e23f628a5a 100644 --- a/api/js/egw_action/EgwMenuShoelace.ts +++ b/api/js/egw_action/EgwMenuShoelace.ts @@ -20,12 +20,8 @@ export class EgwMenuShoelace extends LitElement font-weight: var(--sl-font-weight-bold, bold); } - .custom-color::part(label) { - --color: var(--color); - } - sl-menu-item::part(base) { - height: 1.6em; + height: 1.7em; line-height: var(--sl-line-height-dense); align-items: center; padding: 0; @@ -88,10 +84,10 @@ export class EgwMenuShoelace extends LitElement if(this.popup == null) { this.popup = Object.assign(document.createElement("sl-popup"), { - placement: "bottom-start", + placement: "right-start", autoSize: "vertical", flip: true, - flipFallbackPlacements: "top-start", + flipFallbackPlacements: "right-end", flipFallbackStrategy: "initial", shift: true }); @@ -105,8 +101,8 @@ export class EgwMenuShoelace extends LitElement return { x: _x, y: _y, - width: 0, //menu.clientWidth, - height: 0, //menu.clientHeight, + width: 0, //menu.clientWidth, + height: menu.clientHeight, top: _y, left: _x, right: _x,