Skip to content

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.

fix: ai chat block center peek animation (#7781)

donteatfriedrice025abc61691b
diff --git a/packages/frontend/core/src/modules/peek-view/entities/peek-view.ts b/packages/frontend/core/src/modules/peek-view/entities/peek-view.ts
index a8c6d9cbae..1d1d5af5d2 100644
--- a/packages/frontend/core/src/modules/peek-view/entities/peek-view.ts
+++ b/packages/frontend/core/src/modules/peek-view/entities/peek-view.ts
@@ -200,7 +200,10 @@ export class PeekViewEntity extends Entity {
this._active$.next({ target, info: resolvedInfo });
this._show$.next({
value: true,
- animation: resolvedInfo.type === 'doc' ? 'zoom' : 'fade',
+ animation:
+ resolvedInfo.type === 'doc' || resolvedInfo.type === 'ai-chat-block'
+ ? 'zoom'
+ : 'fade',
});
return firstValueFrom(race(this._active$, this.show$).pipe(map(() => {})));
};