From e5a88c35f5b7de5c6dd2950c63f9c0c88f320c68 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 28 Oct 2022 11:48:42 -0600 Subject: [PATCH] Fix date duration label always showed above the input, never to the left --- api/js/etemplate/Et2Date/Et2Date.ts | 6 ++++-- api/js/etemplate/Et2Date/Et2DateDuration.ts | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Date/Et2Date.ts b/api/js/etemplate/Et2Date/Et2Date.ts index 73e5a96979..d587af2195 100644 --- a/api/js/etemplate/Et2Date/Et2Date.ts +++ b/api/js/etemplate/Et2Date/Et2Date.ts @@ -875,8 +875,10 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr)) render() { return html` -
${this._groupOneTemplate()}
-
${this._groupTwoTemplate()}
+
+
${this._groupOneTemplate()}
+
${this._groupTwoTemplate()}
+
`; } diff --git a/api/js/etemplate/Et2Date/Et2DateDuration.ts b/api/js/etemplate/Et2Date/Et2DateDuration.ts index b9d322633e..c3155620ed 100644 --- a/api/js/etemplate/Et2Date/Et2DateDuration.ts +++ b/api/js/etemplate/Et2Date/Et2DateDuration.ts @@ -357,6 +357,17 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement) return this.__displayFormat; } + + render() + { + return html` +
+
${this._groupOneTemplate()}
+
${this._groupTwoTemplate()}
+
+ `; + } + /** * @return {TemplateResult} * @protected