citation dialog: remove cited item placeholder in library mode (#5152)

Keep the placeholder node to retain the positioning
of the text consistent but remove the border
so the item card is invisible.

Also: remove spinner

Fixes: #5151
This commit is contained in:
abaevbog 2025-03-27 00:03:03 -07:00 • committed by GitHub
parent b3a3757716
commit a366f16346
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View file

@ -212,8 +212,6 @@ class Layout {
if (group.length === 0 && key == "cited") {
let placeholder = Helpers.createCitedItemPlaceholder();
items = [placeholder];
let spinner = Helpers.createNode("image", { id: "cited-items-spinner", status: "animate" }, "zotero-spinner-16");
section.querySelector(".header .header-btn-group").prepend(spinner);
}
itemContainer.replaceChildren(...items);
sections.push(section);

View file

@ -115,11 +115,6 @@
}
}
#cited-items-spinner {
width: 20px;
height: 20px;
}
// alternative to var(--accent-blue10) without opacity
// which causes issues with stacked item cards in library mode
--selected-item-background: #EBF0FC;
@ -233,6 +228,11 @@
&.selected {
background-color: var(--selected-item-background) !important;
}
// no visible border around the placeholder
&.cited-placeholder {
border: 1px solid transparent;
padding: 0;
}
}
}