Preferences: Use XUL <label>s around HTML <h2>s

Fixes #2836
This commit is contained in:
Abe Jellinek 2022-10-05 12:05:23 -04:00
parent 0bbad7a2db
commit bcb4220d00
5 changed files with 20 additions and 20 deletions

View file

@ -28,7 +28,7 @@
<html:h1>&zotero.preferences.prefpane.general;</html:h1>
<groupbox id="zotero-prefpane-advanced-miscellaneous">
<html:label><html:h2>&zotero.preferences.miscellaneous;</html:h2></html:label>
<label><html:h2>&zotero.preferences.miscellaneous;</html:h2></label>
<hbox align="center">
<checkbox label="&zotero.preferences.autoUpdate;" preference="extensions.zotero.automaticScraperUpdates" native="true"/>
@ -40,7 +40,7 @@
</groupbox>
<groupbox id="zotero-prefpane-advanced-advancedConfiguration">
<html:label><html:h2>&zotero.preferences.advanced.advancedConfiguration;</html:h2></html:label>
<label><html:h2>&zotero.preferences.advanced.advancedConfiguration;</html:h2></label>
<hbox id="zotero-prefpane-advanced-openbuttons" align="center" style="display: block">
<button id="config-editor"
@ -58,7 +58,7 @@
<html:h1>&zotero.preferences.advanced.filesAndFolders;</html:h1>
<groupbox>
<html:label><html:h2>&zotero.preferences.attachmentBaseDir.caption;</html:h2></html:label>
<label><html:h2>&zotero.preferences.attachmentBaseDir.caption;</html:h2></label>
<!-- This doesn't wrap without an explicit width -->
<vbox>
@ -87,7 +87,7 @@
</groupbox>
<groupbox>
<html:label><html:h2>&zotero.preferences.dataDir;</html:h2></html:label>
<label><html:h2>&zotero.preferences.dataDir;</html:h2></label>
<radiogroup id="data-dir"
preference="extensions.zotero.useDataDir">
@ -115,7 +115,7 @@
</groupbox>
<groupbox>
<html:label><html:h2>&zotero.preferences.dbMaintenance;</html:h2></html:label>
<label><html:h2>&zotero.preferences.dbMaintenance;</html:h2></label>
<hbox style="display: block">
<button label="&zotero.preferences.dbMaintenance.integrityCheck;"
@ -189,7 +189,7 @@
</groupbox>
<groupbox id="zotero-prefpane-advanced-feeds-feedDefaults">
<html:label><html:h2>&zotero.preferences.feeds.feedDefaults;</html:h2></html:label>
<label><html:h2>&zotero.preferences.feeds.feedDefaults;</html:h2></label>
<hbox>
<hbox align="center">
<label value="&zotero.feedSettings.refresh.label1;"/>
@ -218,7 +218,7 @@
<html:h1>&zotero.preferences.prefpane.search;</html:h1>
<groupbox>
<html:label><html:h2>&zotero.preferences.search.fulltextCache;</html:h2></html:label>
<label><html:h2>&zotero.preferences.search.fulltextCache;</html:h2></label>
<hbox>
<button id="fulltext-rebuildIndex" flex="1" oncommand="Zotero_Preferences.Advanced.rebuildIndexPrompt()"
@ -245,7 +245,7 @@
</groupbox>
<groupbox id="fulltext-stats">
<html:label><html:h2>&zotero.preferences.search.indexStats;</html:h2></html:label>
<label><html:h2>&zotero.preferences.search.indexStats;</html:h2></label>
<vbox class="form-grid">
<label value="&zotero.preferences.search.indexStats.indexed;"/>

View file

@ -29,7 +29,7 @@
<groupbox flex="1">
<!-- HTML needs to be wrapped in an hbox to isolate from XUL box layout -->
<hbox><html:label><html:h2>&zotero.preferences.cite.styles.styleManager;</html:h2></html:label></hbox>
<hbox><label><html:h2>&zotero.preferences.cite.styles.styleManager;</html:h2></label></hbox>
<hbox class="virtualized-table-container" flex="1" height="300px">
<html:div id="styleManager"/>
@ -46,7 +46,7 @@
</groupbox>
<groupbox>
<html:label><html:h2>&zotero.preferences.citationOptions.caption;</html:h2></html:label>
<label><html:h2>&zotero.preferences.citationOptions.caption;</html:h2></label>
<checkbox label="&zotero.preferences.export.citePaperJournalArticleURL;" preference="extensions.zotero.export.citePaperJournalArticleURL" native="true"/>
<!-- This doesn't wrap without an explicit width, for some reason -->
@ -56,7 +56,7 @@
</groupbox>
<groupbox>
<html:label><html:h2>&zotero.general.tools;</html:h2></html:label>
<label><html:h2>&zotero.general.tools;</html:h2></label>
<hbox>
<button id="openCSLEdit"

View file

@ -26,7 +26,7 @@
<vbox id="zotero-prefpane-export" onload="Zotero_Preferences.Export.init()">
<groupbox id="zotero-prefpane-export-groupbox">
<vbox>
<html:label><html:h2>&zotero.preferences.quickCopy.caption;</html:h2></html:label>
<label><html:h2>&zotero.preferences.quickCopy.caption;</html:h2></label>
</vbox>
<label id="quickCopy-instructions"/>

View file

@ -24,7 +24,7 @@
-->
<vbox id="zotero-prefpane-general" onload="Zotero_Preferences.General.init()">
<groupbox>
<html:label><html:h2>&zotero.preferences.interface;</html:h2></html:label>
<label><html:h2>&zotero.preferences.interface;</html:h2></label>
<hbox align="center">
<label value="&zotero.bibliography.locale.label;"/>
@ -37,7 +37,7 @@
</groupbox>
<groupbox id="zotero-prefpane-file-handling-groupbox">
<html:label><html:h2>&zotero.preferences.fileHandling;</html:h2></html:label>
<label><html:h2>&zotero.preferences.fileHandling;</html:h2></label>
<vbox>
<checkbox id="automaticSnapshots-checkbox"
@ -72,7 +72,7 @@
</groupbox>
<groupbox>
<html:label><html:h2>&zotero.preferences.prefpane.locate;</html:h2></html:label>
<label><html:h2>&zotero.preferences.prefpane.locate;</html:h2></label>
<hbox>
<menulist id="openurl-menu" native="true">
@ -108,7 +108,7 @@
</groupbox>
<groupbox id="zotero-prefpane-miscellaneous-groupbox">
<html:label><html:h2>&zotero.preferences.miscellaneous;</html:h2></html:label>
<label><html:h2>&zotero.preferences.miscellaneous;</html:h2></label>
<checkbox label="&zotero.preferences.automaticTags;" preference="extensions.zotero.automaticTags" native="true"/>
<hbox align="center">
@ -119,7 +119,7 @@
</groupbox>
<groupbox>
<html:label><html:h2>&zotero.preferences.groups;</html:h2></html:label>
<label><html:h2>&zotero.preferences.groups;</html:h2></label>
<label value="&zotero.preferences.groups.whenCopyingInclude;"/>
<vbox style="margin-left: 2em">

View file

@ -28,7 +28,7 @@
<vbox id="sync-unauthorized">
<groupbox>
<html:label><html:h2>&zotero.preferences.sync.syncServer;</html:h2></html:label>
<label><html:h2>&zotero.preferences.sync.syncServer;</html:h2></label>
<hbox>
<html:div class="form-grid">
@ -70,7 +70,7 @@
<vbox id="sync-authorized" hidden="true">
<groupbox>
<html:label><html:h2>&zotero.preferences.sync.syncServer;</html:h2></html:label>
<label><html:h2>&zotero.preferences.sync.syncServer;</html:h2></label>
<html:div class="form-grid">
<label value="&zotero.preferences.sync.username;"/>
@ -105,7 +105,7 @@
</groupbox>
<groupbox id="storage-settings">
<html:label><html:h2>&zotero.preferences.sync.fileSyncing;</html:h2></html:label>
<label><html:h2>&zotero.preferences.sync.fileSyncing;</html:h2></label>
<!-- My Library -->
<hbox>