Skip to content

Commit

Permalink
Merge pull request #125 from iceljc/features/refine-chat-window
Browse files Browse the repository at this point in the history
add text input animation
  • Loading branch information
Oceania2018 committed May 9, 2024
2 parents be08fa2 + 9b080b5 commit de030e2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/lib/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ File: Main Css File
@import "custom/pages/conversation";
@import "custom/pages/agent";

// Common
@import "custom/common/animation";

//RTL
// @import "custom/rtl/bootstrap-rtl";
// @import "custom/rtl/components-rtl";
Expand Down
17 changes: 17 additions & 0 deletions src/lib/scss/custom/common/_animation.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.css-animation {
animation-duration: 0.8s;
animation-fill-mode: both;
}

.fade-in-from-none {
animation-name: fadeInFromNone;
}

@keyframes fadeInFromNone {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
1 change: 0 additions & 1 deletion src/lib/scss/custom/pages/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@
}

.chat-input-section {
border-top: 1px solid var(--#{$prefix}border-color);
padding: 2vmin 2%;
height: 8%;
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@
</div>
</div>
<div class={`chat-input-section ${!loadEditor ? 'chat-input-hide' : ''}`}>
<div class={`chat-input-section css-animation ${!loadEditor ? 'chat-input-hide' : 'fade-in-from-none'}`}>
<div class="row">
{#if loadTextEditor}
<div class="col-auto">
Expand Down

0 comments on commit de030e2

Please sign in to comment.