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

This commit is contained in:
donteatfriedrice 2024-08-08 02:17:06 +00:00
parent 58b43582e1
commit 025abc6169
No known key found for this signature in database
GPG Key ID: 710A67A6AC71FD16

View File

@ -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(() => {})));
};