fx-compat: Fix Locate Manager appearance

- Correct padding and don't use Mozilla preferences styles
- Fixed v-t issue that applied the wrong class names to columns, giving them
  incorrect widths
This commit is contained in:
Abe Jellinek 2022-11-07 16:05:21 -05:00
parent 3af5976aa2
commit 9cc2993e70
3 changed files with 4 additions and 4 deletions

View file

@ -1600,9 +1600,9 @@ function renderCell(index, data, column) {
return span; return span;
} }
function renderCheckboxCell(index, data, columnName) { function renderCheckboxCell(index, data, column) {
let span = document.createElement('span'); let span = document.createElement('span');
span.className = `cell checkbox ${columnName}`; span.className = `cell checkbox ${column.className}`;
span.setAttribute('role', 'checkbox'); span.setAttribute('role', 'checkbox');
span.setAttribute('aria-checked', data); span.setAttribute('aria-checked', data);
if (data) { if (data) {

View file

@ -50,6 +50,7 @@ function init() {
showHeader={true} showHeader={true}
multiSelect={true} multiSelect={true}
columns={columns} columns={columns}
onColumnSort={null}
disableFontSizeScaling={true} disableFontSizeScaling={true}
getRowString={index => getRowData(index).name} getRowString={index => getRowData(index).name}
onActivate={handleActivate} onActivate={handleActivate}

View file

@ -27,7 +27,6 @@
<?xml-stylesheet href="chrome://global/skin/global.css"?> <?xml-stylesheet href="chrome://global/skin/global.css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/preferences.css"?> <?xml-stylesheet href="chrome://zotero-platform/content/preferences.css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<?xml-stylesheet href="chrome://zotero/skin/preferences.css"?> <?xml-stylesheet href="chrome://zotero/skin/preferences.css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero-react-client.css"?> <?xml-stylesheet href="chrome://zotero-platform/content/zotero-react-client.css"?>
@ -37,7 +36,7 @@
windowtype="zotero:pref" windowtype="zotero:pref"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml"
style="display: flex;"> style="display: flex; padding: 15px;">
<script src="include.js"></script> <script src="include.js"></script>
<script src="locateManager.js"></script> <script src="locateManager.js"></script>