Skip to content

Commit 9b080b5

Browse files
author
Jicheng Lu
committed
add text input animation
1 parent 43c7eed commit 9b080b5

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

src/lib/scss/app.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ File: Main Css File
8989
@import "custom/pages/conversation";
9090
@import "custom/pages/agent";
9191

92+
// Common
93+
@import "custom/common/animation";
94+
9295
//RTL
9396
// @import "custom/rtl/bootstrap-rtl";
9497
// @import "custom/rtl/components-rtl";
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.css-animation {
2+
animation-duration: 0.8s;
3+
animation-fill-mode: both;
4+
}
5+
6+
.fade-in-from-none {
7+
animation-name: fadeInFromNone;
8+
}
9+
10+
@keyframes fadeInFromNone {
11+
from {
12+
opacity: 0;
13+
}
14+
to {
15+
opacity: 1;
16+
}
17+
}

src/lib/scss/custom/pages/_chat.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@
287287
}
288288

289289
.chat-input-section {
290-
border-top: 1px solid var(--#{$prefix}border-color);
291290
padding: 2vmin 2%;
292291
height: 8%;
293292
}

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@
10401040
</div>
10411041
</div>
10421042
1043-
<div class={`chat-input-section ${!loadEditor ? 'chat-input-hide' : ''}`}>
1043+
<div class={`chat-input-section css-animation ${!loadEditor ? 'chat-input-hide' : 'fade-in-from-none'}`}>
10441044
<div class="row">
10451045
{#if loadTextEditor}
10461046
<div class="col-auto">

0 commit comments

Comments
 (0)