mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
98eb307a28
commit
b2599d6750
1 changed files with 4 additions and 2 deletions
|
|
@ -684,7 +684,9 @@ export class Wnd {
|
||||||
if (item.headElement.classList.contains("item--focus")) {
|
if (item.headElement.classList.contains("item--focus")) {
|
||||||
let latestHeadElement: HTMLElement;
|
let latestHeadElement: HTMLElement;
|
||||||
Array.from(item.headElement.parentElement.children).forEach((headItem: HTMLElement) => {
|
Array.from(item.headElement.parentElement.children).forEach((headItem: HTMLElement) => {
|
||||||
if (!headItem.isSameNode(item.headElement)) {
|
if (!headItem.isSameNode(item.headElement) &&
|
||||||
|
headItem.style.maxWidth !== "0px" // 不对比已移除但还在动画效果中的元素 https://github.com/siyuan-note/siyuan/issues/7878
|
||||||
|
) {
|
||||||
if (!latestHeadElement) {
|
if (!latestHeadElement) {
|
||||||
latestHeadElement = headItem;
|
latestHeadElement = headItem;
|
||||||
} else if (headItem.getAttribute("data-activetime") > latestHeadElement.getAttribute("data-activetime")) {
|
} else if (headItem.getAttribute("data-activetime") > latestHeadElement.getAttribute("data-activetime")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue