mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🚨
This commit is contained in:
parent
c8b7d9facf
commit
f8b9c5ed92
2 changed files with 2 additions and 2 deletions
|
|
@ -387,7 +387,7 @@ export const updateOutlineEmoji = (unicode: string) => {
|
||||||
getAllModels().outline.forEach(model => {
|
getAllModels().outline.forEach(model => {
|
||||||
model.headerElement.nextElementSibling.firstElementChild.innerHTML = unicode2Emoji(unicode || Constants.SIYUAN_IMAGE_FILE);
|
model.headerElement.nextElementSibling.firstElementChild.innerHTML = unicode2Emoji(unicode || Constants.SIYUAN_IMAGE_FILE);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
export const updateFileTreeEmoji = (unicode: string, id: string, icon = "iconFile") => {
|
export const updateFileTreeEmoji = (unicode: string, id: string, icon = "iconFile") => {
|
||||||
let emojiElement;
|
let emojiElement;
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ export class Outline extends Model {
|
||||||
public updateDocTitle(ial?:IObject) {
|
public updateDocTitle(ial?:IObject) {
|
||||||
if (this.type === "pin") {
|
if (this.type === "pin") {
|
||||||
if (ial) {
|
if (ial) {
|
||||||
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`
|
let iconHTML = `<span class="b3-list-item__graphic">${unicode2Emoji(ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`;
|
||||||
if (typeof ial.icon === "undefined" && this.headerElement.nextElementSibling.firstElementChild) {
|
if (typeof ial.icon === "undefined" && this.headerElement.nextElementSibling.firstElementChild) {
|
||||||
iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
|
iconHTML = this.headerElement.nextElementSibling.firstElementChild.outerHTML;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue