mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
better placement and a little bigger line-height
This commit is contained in:
parent
b26c7815b1
commit
9388a8f930
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user