diff --git a/chrome/content/zotero-platform/win/overlay.css b/chrome/content/zotero-platform/win/overlay.css index 68bbf38796..6c9085a832 100644 --- a/chrome/content/zotero-platform/win/overlay.css +++ b/chrome/content/zotero-platform/win/overlay.css @@ -119,10 +119,6 @@ tree { padding-left: 0.05em; } -#tags-box button { - margin: .04em 0 0 .15em !important; -} - .zotero-editpane-tabs spacer { border: 0; } diff --git a/chrome/content/zotero/elements/notesBox.js b/chrome/content/zotero/elements/notesBox.js index c6e025f0ea..b69c1964db 100644 --- a/chrome/content/zotero/elements/notesBox.js +++ b/chrome/content/zotero/elements/notesBox.js @@ -39,10 +39,10 @@
-
-
+
`, ['chrome://zotero/locale/zotero.dtd']); @@ -55,7 +55,7 @@ let content = document.importNode(this.content, true); this.append(content); - this._id('add').addEventListener('click', this._handleAdd); + this._id('notes-add').addEventListener('click', this._handleAdd); this._notifierID = Zotero.Notifier.registerObserver(this, ['item'], 'notesBox'); } @@ -115,9 +115,9 @@ } this._noteIDs = this._item.getNotes(); - this._id('add').hidden = this._mode != 'edit'; + this._id('notes-add').hidden = this._mode != 'edit'; - let grid = this._id('grid'); + let grid = this._id('notes-grid'); grid.replaceChildren(); let notes = Zotero.Items.get(this._item.getNotes()); @@ -147,7 +147,7 @@ } let num = this._noteIDs.length; - this._id('num').replaceChildren(Zotero.getString('pane.item.notes.count', num, num)); + this._id('notes-num').replaceChildren(Zotero.getString('pane.item.notes.count', num, num)); } _handleAdd = (event) => { @@ -166,7 +166,7 @@ } _id(id) { - return this.querySelector(`[id=${id}]`); + return this.querySelector(`#${id}`); } } customElements.define("notes-box", NotesBox); diff --git a/scss/elements/_notesBox.scss b/scss/elements/_notesBox.scss index c943c5c1e3..6c3d818736 100644 --- a/scss/elements/_notesBox.scss +++ b/scss/elements/_notesBox.scss @@ -1,5 +1,6 @@ notes-box, related-box { .header { + font-weight: normal; display: flex; padding-left: 10px; align-items: center;