Fix missing action buttons in RTF Scan's Verify Cited Items table
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run

The action column's width was given as "32px", which VirtualizedTable
now turns into an invalid CSS width, collapsing the column and hiding
the buttons needed to resolve unmapped and ambiguous citations. Also
restore the accept-match icon on ambiguous-citation candidates.

https://forums.zotero.org/discussion/133740/

(cherry picked from commit 0d0bbc8925)
This commit is contained in:
Dan Stillman 2026-09-27 14:51:36 -04:00
parent 3b1b550cdd
commit c65dcb1cdf

View file

@ -13,7 +13,7 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/styleConfi
const columns = [
{ dataKey: 'rtf', label: "zotero.rtfScan.citation.label", primary: true, flex: 4 },
{ dataKey: 'item', label: "zotero.rtfScan.itemName.label", flex: 5 },
{ dataKey: 'action', label: "", fixedWidth: true, width: "32px" },
{ dataKey: 'action', label: "", fixedWidth: true, width: 32 },
];
const initialRows = [
@ -339,7 +339,7 @@ const Zotero_RTFScan = { // eslint-disable-line no-unused-vars, camelcase
row = { ...row, parent: ambiguousRow };
this.insertRows(row, this.rowMap.mapped);
this.insertRows(
items.map(item => ({ rtf: '', item: item.getField('title'), parent: row })),
items.map(item => ({ rtf: '', item: item.getField('title'), action: true, parent: row })),
this.rowMap[row.id] + 1
);
this.citationItemIDs[row.rtf] = items.map(item => item.id);