From fee4667e3253c4d1d5f9ec1f589a6b57bf19702b Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 1 Mar 2021 13:06:07 +0100 Subject: [PATCH] Place sticky icons at the far right end of the labelContainer --- ts/editor/labelContainer.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ts/editor/labelContainer.ts b/ts/editor/labelContainer.ts index 40e6046a5..82586565e 100644 --- a/ts/editor/labelContainer.ts +++ b/ts/editor/labelContainer.ts @@ -6,17 +6,17 @@ export class LabelContainer extends HTMLDivElement { constructor() { super(); - this.className = "d-flex"; + this.className = "d-flex justify-content-between"; + + this.label = document.createElement("span"); + this.label.className = "fieldname"; + this.appendChild(this.label); this.sticky = document.createElement("span"); this.sticky.className = "bi me-1 sticky-icon"; this.sticky.hidden = true; this.appendChild(this.sticky); - this.label = document.createElement("span"); - this.label.className = "fieldname"; - this.appendChild(this.label); - this.toggleSticky = this.toggleSticky.bind(this); }