Vanessa 2025-09-05 11:26:18 +08:00
parent 65b52a2bc6
commit d48e3d5211
2 changed files with 3508 additions and 2774 deletions

6280
app/pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -238,7 +238,7 @@ const getActiveEditor = (wndActive = true) => {
allEditor.forEach(item => {
let headerElement = item.protyle.model?.parent.headElement;
if (!headerElement && item.protyle.element.getBoundingClientRect().height > 0) {
const tabBodyElement = item.protyle.element.parentElement.parentElement.parentElement;
const tabBodyElement = item.protyle.element.closest(".fn__flex-1[data-id]");
const tabId = tabBodyElement.getAttribute("data-id");
if (tabBodyElement.classList.contains("fn__flex-1") && tabId) {
headerElement = document.querySelector(`.layout-tab-bar .item[data-id="${tabId}"]`);