aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-27 15:22:06 -0500
committerGitHub <noreply@github.com>2020-11-27 15:22:06 -0500
commit94d63f4f87a61f7e42ea44d8100ea11d5ccdbce0 (patch)
treea06b8500c9fe839f4ccc7588a40910c9b1de0eac /ext/bg/js
parent8449322e1c7b083e1096b8168abf162730880f89 (diff)
Display style updates (#1072)
* Add variables for tag styles * Add variable for compact list separator * Improve compactness of pitch accents * Improve kanji link styles * Improve coloring for lists * Move styles * Update styles for lists * Move conditional styles * Simplify definitions * Remove unused styles * Cleanup * Use strings for dataset properties * Don't always collapse pitch accents
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/settings/popup-elements.js2
-rw-r--r--ext/bg/js/settings/profile-controller.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/settings/popup-elements.js b/ext/bg/js/settings/popup-elements.js
index decb39e1..15de91e8 100644
--- a/ext/bg/js/settings/popup-elements.js
+++ b/ext/bg/js/settings/popup-elements.js
@@ -181,7 +181,7 @@ class StatusFooter extends PopupElement {
}
if (active) {
- target.dataset.active = true;
+ target.dataset.active = 'true';
if (!this.isVisible()) {
this.setVisible(true);
}
diff --git a/ext/bg/js/settings/profile-controller.js b/ext/bg/js/settings/profile-controller.js
index 286ce006..aa74b419 100644
--- a/ext/bg/js/settings/profile-controller.js
+++ b/ext/bg/js/settings/profile-controller.js
@@ -298,7 +298,7 @@ class ProfileController {
if (profile === null || this.profileCount <= 1) { return; }
this._removeProfileNameElement.textContent = profile.name;
- this._profileRemoveModal.node.dataset.profileIndex = profileIndex;
+ this._profileRemoveModal.node.dataset.profileIndex = `${profileIndex}`;
this._profileRemoveModal.setVisible(true);
}