mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
parent
769b4c8c34
commit
cdcac8a6e1
1 changed files with 6 additions and 1 deletions
|
|
@ -608,6 +608,11 @@
|
|||
// Keep in sync with _itemPaneSidenav.scss
|
||||
let btnSize = 28;
|
||||
let btnGap = 6;
|
||||
let btnToggleSize = 42;
|
||||
|
||||
let isStacked = this.classList.contains("stacked");
|
||||
let baseSize = isStacked ? 0 : btnToggleSize;
|
||||
|
||||
// Before the center of the button, insert before it; otherwise, insert after it.
|
||||
let index = 0;
|
||||
if (offset < btnSize / 2) {
|
||||
|
|
@ -619,7 +624,7 @@
|
|||
}
|
||||
return {
|
||||
index,
|
||||
position: index === 0 ? 0 : index * (btnSize + btnGap) + btnGap / 2
|
||||
position: (index === 0 ? 0 : index * (btnSize + btnGap) + btnGap / 2) + baseSize
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue