mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Put sticky tooltip on icon, not label container
This commit is contained in:
parent
7370c92a0b
commit
9cbcfa1bbf
1 changed files with 5 additions and 4 deletions
|
@ -42,10 +42,6 @@ export class LabelContainer extends HTMLDivElement {
|
||||||
super();
|
super();
|
||||||
this.className = "fname d-flex justify-content-between";
|
this.className = "fname d-flex justify-content-between";
|
||||||
|
|
||||||
i18n.then(() => {
|
|
||||||
this.title = appendInParentheses(tr.editingToggleSticky(), "F9");
|
|
||||||
});
|
|
||||||
|
|
||||||
this.label = document.createElement("span");
|
this.label = document.createElement("span");
|
||||||
this.label.className = "fieldname";
|
this.label.className = "fieldname";
|
||||||
this.appendChild(this.label);
|
this.appendChild(this.label);
|
||||||
|
@ -58,6 +54,11 @@ export class LabelContainer extends HTMLDivElement {
|
||||||
this.sticky.className = "icon pin-icon";
|
this.sticky.className = "icon pin-icon";
|
||||||
this.sticky.innerHTML = pinIcon;
|
this.sticky.innerHTML = pinIcon;
|
||||||
this.sticky.hidden = true;
|
this.sticky.hidden = true;
|
||||||
|
|
||||||
|
i18n.then(() => {
|
||||||
|
this.sticky.title = appendInParentheses(tr.editingToggleSticky(), "F9");
|
||||||
|
});
|
||||||
|
|
||||||
this.fieldState.appendChild(this.sticky);
|
this.fieldState.appendChild(this.sticky);
|
||||||
|
|
||||||
this.setSticky = this.setSticky.bind(this);
|
this.setSticky = this.setSticky.bind(this);
|
||||||
|
|
Loading…
Reference in a new issue