Skip to content

Commit

Permalink
feat: copilot scroll back button animate bounce
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Feb 1, 2024
1 parent 534efa7 commit c8c7de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular/common/scroll/scroll-back.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: t
<div #backTop class="ngm-scroll-back block" [class.ngm-scroll-back-rtl]="dir === 'rtl'">
<ng-template #defaultContent>
<button
class="cursor-pointer absolute bottom-0 z-10 rounded-full bg-clip-padding border
class="cursor-pointer bottom-0 z-10 rounded-full bg-clip-padding border
text-gray-600 bg-white dark:border-white/10 dark:bg-white/10 dark:text-gray-200 right-1/2 border-black/10"
(click)="scrollTo()"
>
Expand Down
3 changes: 2 additions & 1 deletion packages/angular/copilot/chat/chat.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
</div>
</div>

<ngm-scroll-back #scrollBack class="absolute bottom-0 left-1/2" [ngmTarget]="chatsContent" direction="bottom"></ngm-scroll-back>
<ngm-scroll-back #scrollBack class="block absolute bottom-0 left-1/2" [class.animate-bounce]="answering()"
[ngmTarget]="chatsContent" direction="bottom"></ngm-scroll-back>
</div>

<div class="relative m-3 border rounded-lg shadow-sm overflow-hidden border-neutral-200 dark:border-neutral-800"
Expand Down

0 comments on commit c8c7de6

Please sign in to comment.