mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
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:
parent
b3a3757716
commit
a366f16346
2 changed files with 5 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue