diff --git a/packages/affine/block-list/src/list-block.ts b/packages/affine/block-list/src/list-block.ts index 4327ad34acc0..f00c35c3310c 100644 --- a/packages/affine/block-list/src/list-block.ts +++ b/packages/affine/block-list/src/list-block.ts @@ -163,6 +163,8 @@ export class ListBlockComponent extends CaptionedBlockComponent< override renderBlock(): TemplateResult<1> { const { model, _onClickIcon } = this; + const arabicRegex = /^[\u0600-\u06FF]$/; + const collapsed = this.doc.readonly ? this._isCollapsedWhenReadOnly : !!model.collapsed; @@ -183,8 +185,12 @@ export class ListBlockComponent extends CaptionedBlockComponent< `; return html` -
-
+
+
${this._toggleTemplate(collapsed)} ${listIcon} { + const arabicRegex = /^[\u0600-\u06FF]$/; const { type$ } = this.model; const children = html`
-
+