mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
65b52a2bc6
commit
d48e3d5211
2 changed files with 3508 additions and 2774 deletions
6280
app/pnpm-lock.yaml
generated
6280
app/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -238,7 +238,7 @@ const getActiveEditor = (wndActive = true) => {
|
||||||
allEditor.forEach(item => {
|
allEditor.forEach(item => {
|
||||||
let headerElement = item.protyle.model?.parent.headElement;
|
let headerElement = item.protyle.model?.parent.headElement;
|
||||||
if (!headerElement && item.protyle.element.getBoundingClientRect().height > 0) {
|
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");
|
const tabId = tabBodyElement.getAttribute("data-id");
|
||||||
if (tabBodyElement.classList.contains("fn__flex-1") && tabId) {
|
if (tabBodyElement.classList.contains("fn__flex-1") && tabId) {
|
||||||
headerElement = document.querySelector(`.layout-tab-bar .item[data-id="${tabId}"]`);
|
headerElement = document.querySelector(`.layout-tab-bar .item[data-id="${tabId}"]`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue