Place word processor plugin installers under heading and fix spacing
Fixes #3147
This commit is contained in:
parent
d077388616
commit
5e41b3ab4d
3 changed files with 20 additions and 7 deletions
|
@ -70,6 +70,8 @@
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox class="main-section" id="wordProcessors">
|
<vbox class="main-section" id="wordProcessors">
|
||||||
<html:h1>&zotero.preferences.cite.wordProcessors;</html:h1>
|
<html:h1>&zotero.preferences.cite.wordProcessors;</html:h1>
|
||||||
|
|
||||||
|
<vbox id="wordProcessorInstallers"/>
|
||||||
|
|
||||||
<checkbox label="&zotero.preferences.cite.wordProcessors.useClassicAddCitationDialog;" preference="extensions.zotero.integration.useClassicAddCitationDialog" native="true"/>
|
<checkbox label="&zotero.preferences.cite.wordProcessors.useClassicAddCitationDialog;" preference="extensions.zotero.integration.useClassicAddCitationDialog" native="true"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
|
@ -489,6 +489,15 @@ button {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#wordProcessorInstallers {
|
||||||
|
margin-block: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordProcessorInstallers > groupbox > label > h2 {
|
||||||
|
/* Override spacing added between groupboxes */
|
||||||
|
margin-top: 0.5em !important;
|
||||||
|
}
|
||||||
|
|
||||||
#styleManager
|
#styleManager
|
||||||
{
|
{
|
||||||
height: 250px;
|
height: 250px;
|
||||||
|
|
|
@ -170,9 +170,11 @@ ZoteroPluginInstaller.prototype = {
|
||||||
groupbox = document.createXULElement("groupbox");
|
groupbox = document.createXULElement("groupbox");
|
||||||
groupbox.id = this._addon.EXTENSION_DIR;
|
groupbox.id = this._addon.EXTENSION_DIR;
|
||||||
|
|
||||||
var caption = document.createXULElement("caption");
|
var label = document.createXULElement("label");
|
||||||
caption.setAttribute("label", this._addon.APP);
|
var h2 = document.createElement('h2');
|
||||||
groupbox.appendChild(caption);
|
h2.textContent = this._addon.APP;
|
||||||
|
label.appendChild(h2);
|
||||||
|
groupbox.appendChild(label);
|
||||||
|
|
||||||
var description = document.createXULElement("description");
|
var description = document.createXULElement("description");
|
||||||
description.style.width = "45em";
|
description.style.width = "45em";
|
||||||
|
@ -202,12 +204,12 @@ ZoteroPluginInstaller.prototype = {
|
||||||
hbox.appendChild(button);
|
hbox.appendChild(button);
|
||||||
groupbox.appendChild(hbox);
|
groupbox.appendChild(hbox);
|
||||||
|
|
||||||
var tabpanel = document.getElementById("wordProcessors"),
|
var container = document.getElementById("wordProcessorInstallers"),
|
||||||
old = document.getElementById(this._addon.EXTENSION_DIR);
|
old = document.getElementById(this._addon.EXTENSION_DIR);
|
||||||
if(old) {
|
if(old) {
|
||||||
tabpanel.replaceChild(groupbox, old);
|
container.replaceChild(groupbox, old);
|
||||||
} else {
|
} else {
|
||||||
tabpanel.insertBefore(groupbox, tabpanel.firstChild);
|
container.appendChild(groupbox);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -245,4 +247,4 @@ ZoteroPluginInstaller.prototype = {
|
||||||
}, 500);
|
}, 500);
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue