diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scss index e39449c6d..56f942a26 100644 --- a/app/src/assets/scss/business/_av.scss +++ b/app/src/assets/scss/business/_av.scss @@ -50,6 +50,7 @@ &__title { outline: none; + font-weight: bold; &:empty::after { color: var(--b3-theme-on-surface); diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index adffeae64..126f3b9f1 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -399,7 +399,6 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => { }]); blockElement.setAttribute("updated", newUpdated); nameElement.dataset.title = newData; - blockElement.querySelector(".layout-tab-bar .item__text").textContent = newData; // 当前页面不能进行推送,否则光标会乱跳 Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => { @@ -412,7 +411,6 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => { } titleElement.textContent = newData; titleElement.dataset.title = newData; - item.querySelector(".layout-tab-bar .item__text").textContent = newData; }); }; diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts index 7bf758c63..814f94d5c 100644 --- a/app/src/protyle/render/av/render.ts +++ b/app/src/protyle/render/av/render.ts @@ -301,7 +301,6 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation, isUndo: bool } titleElement.textContent = operation.data; titleElement.dataset.title = operation.data; - item.querySelector(".layout-tab-bar .item__text").textContent = operation.data; }); } if (lastParentID === operation.parentID && protyle.contentElement.isSameNode(lastElement)) {