mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Place sticky icons at the far right end of the labelContainer
This commit is contained in:
parent
cd26901f3d
commit
fee4667e32
1 changed files with 5 additions and 5 deletions
|
@ -6,17 +6,17 @@ export class LabelContainer extends HTMLDivElement {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
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 = document.createElement("span");
|
||||||
this.sticky.className = "bi me-1 sticky-icon";
|
this.sticky.className = "bi me-1 sticky-icon";
|
||||||
this.sticky.hidden = true;
|
this.sticky.hidden = true;
|
||||||
this.appendChild(this.sticky);
|
this.appendChild(this.sticky);
|
||||||
|
|
||||||
this.label = document.createElement("span");
|
|
||||||
this.label.className = "fieldname";
|
|
||||||
this.appendChild(this.label);
|
|
||||||
|
|
||||||
this.toggleSticky = this.toggleSticky.bind(this);
|
this.toggleSticky = this.toggleSticky.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue