From c1db022fb88cc986a6bd3bb3dc117a68283aa490 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 8 May 2024 09:30:21 -0600 Subject: [PATCH] Better scrollbutton positioning in Et2Date --- api/js/etemplate/Et2Date/Et2Date.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/Et2Date/Et2Date.ts b/api/js/etemplate/Et2Date/Et2Date.ts index 4a072f886e..a2b7a8817c 100644 --- a/api/js/etemplate/Et2Date/Et2Date.ts +++ b/api/js/etemplate/Et2Date/Et2Date.ts @@ -339,6 +339,7 @@ export class Et2Date extends Et2InputWidget(LitFlatpickr) width: calc(var(--sl-input-height-medium) / 2); position: absolute; right: 0px; + margin-inline-end: 0px; } .et2-date-time__scrollbuttons > * { @@ -1047,9 +1048,10 @@ export class Et2Date extends Et2InputWidget(LitFlatpickr) // This element gets hidden and used for value, but copied by flatpickr and used for input return html` - + + ${this._incrementButtonTemplate()} + - ${this._incrementButtonTemplate()} `; } @@ -1062,7 +1064,7 @@ export class Et2Date extends Et2InputWidget(LitFlatpickr) } return html` -
+