There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore(editor): hide title of locked group (#9261)
L-Sun8e1ceec4f912
diff --git a/blocksuite/affine/model/src/elements/group/group.ts b/blocksuite/affine/model/src/elements/group/group.tsindex 1081758a11..d43c1d03ff 100644--- a/blocksuite/affine/model/src/elements/group/group.ts+++ b/blocksuite/affine/model/src/elements/group/group.ts@@ -90,6 +90,16 @@ export class GroupElementModel extends GfxGroupLikeElementModel<GroupElementPropreturn result as SerializedGroupElement;}+ override lock(): void {+ super.lock();+ this.showTitle = false;+ }++ override unlock(): void {+ super.unlock();+ this.showTitle = true;+ }+@observe(// use `GroupElementModel` type in decorator will cause playwright error(_, instance: GfxGroupLikeElementModel<GroupElementProps>, transaction) => {