This commit is contained in:
parent
2360746cc1
commit
7223dec015
1 changed files with 10 additions and 1 deletions
|
@ -147,6 +147,15 @@ export class Outline extends Model {
|
|||
getDockByType("outline").toggleModel("outline");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
} else if (target.isSameNode(this.headerElement.nextElementSibling) || target.classList.contains("block__icons")) {
|
||||
getAllModels().editor.find(item => {
|
||||
if (this.blockId === item.editor.protyle.block.rootID) {
|
||||
item.editor.protyle.contentElement.scrollTop = 0;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
break;
|
||||
}
|
||||
target = target.parentElement;
|
||||
}
|
||||
|
@ -163,7 +172,7 @@ export class Outline extends Model {
|
|||
}
|
||||
}
|
||||
|
||||
public updateDocTitle(ial?:IObject) {
|
||||
public updateDocTitle(ial?: IObject) {
|
||||
if (this.type === "pin") {
|
||||
if (ial) {
|
||||
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`;
|
||||
|
|
Loading…
Add table
Reference in a new issue