Skip to content

Commit 9f6b84b

Browse files
Vanessa219Elroy Wang
authored andcommitted
1 parent 73e8f17 commit 9f6b84b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/protyle/render/av/action.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,10 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
788788
if (newData === nameElement.dataset.title.trim()) {
789789
return;
790790
}
791+
if (newData.length > Constants.SIZE_TITLE) {
792+
showMessage(window.siyuan.languages["_kernel"]["106"]);
793+
return false;
794+
}
791795
const newUpdated = dayjs().format("YYYYMMDDHHmmss");
792796
transaction(protyle, [{
793797
action: "setAttrViewName",

0 commit comments

Comments
 (0)