diff --git a/chrome/content/zotero/elements/guidancePanel.js b/chrome/content/zotero/elements/guidancePanel.js
index 4d1cde88c1..a290b28ab1 100644
--- a/chrome/content/zotero/elements/guidancePanel.js
+++ b/chrome/content/zotero/elements/guidancePanel.js
@@ -29,21 +29,23 @@
class GuidancePanel extends XULElementBase {
content = MozXULElement.parseXULToFragment(`
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
`);
+
+ /*
+ Unused:
+
+
+
+
+
+
+
+
+ */
get panel() {
return this.querySelector('panel');
@@ -113,7 +115,7 @@
text = Zotero.getString("firstRunGuidance." + about);
}
text = text.split("\n");
- var descriptionNode = this.id('panel-description');
+ var descriptionNode = document.querySelector('.panel-text');
while (descriptionNode.hasChildNodes()) {
descriptionNode.removeChild(descriptionNode.firstChild);
diff --git a/chrome/content/zotero/elements/itemBox.js b/chrome/content/zotero/elements/itemBox.js
index 46ae8b376f..5349e210d3 100644
--- a/chrome/content/zotero/elements/itemBox.js
+++ b/chrome/content/zotero/elements/itemBox.js
@@ -778,6 +778,14 @@
this._focusNextField(this._lastTabIndex);
}
+ if (this._showCreatorTypeGuidance) {
+ let creatorTypeLabels = this.querySelectorAll(".creator-type-label");
+ this._id("zotero-author-guidance").show({
+ forEl: creatorTypeLabels[creatorTypeLabels.length - 1]
+ });
+ this._showCreatorTypeGuidance = false;
+ }
+
this._refreshed = true;
}
@@ -1985,10 +1993,7 @@
newVal = val;
if (Zotero.ItemTypes.getName(this.item.itemTypeID) === "bookSection") {
- var creatorTypeLabels = this.querySelectorAll(".creator-type-label");
- this._id("zotero-author-guidance").show({
- forEl: creatorTypeLabels[creatorTypeLabels.length - 1]
- });
+ this._showCreatorTypeGuidance = true;
}
}
diff --git a/chrome/content/zotero/integration/quickFormat.xhtml b/chrome/content/zotero/integration/quickFormat.xhtml
index 13b82d364c..99d07ad4d4 100644
--- a/chrome/content/zotero/integration/quickFormat.xhtml
+++ b/chrome/content/zotero/integration/quickFormat.xhtml
@@ -26,6 +26,7 @@
+
diff --git a/scss/elements/_guidancePanel.scss b/scss/elements/_guidancePanel.scss
index 1a73fdc050..cb0416f7d5 100644
--- a/scss/elements/_guidancePanel.scss
+++ b/scss/elements/_guidancePanel.scss
@@ -1,14 +1,12 @@
guidance-panel {
- panel {
- min-width: none;
- }
-
- stack {
+ .panel-container {
width: 400px;
- margin: 0;
- padding: 0;
+ display: flex;
+ align-items: center;
+ font-size: 1.1em;
+ padding: 8px 0;
}
-
+
#nav-buttons {
-moz-box-align: end;
-moz-box-pack: end;