mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-02 14:33:54 +03:00
fix: ai chat block center peek animation (#7781)
This commit is contained in:
parent
58b43582e1
commit
025abc6169
@ -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(() => {})));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user