Skip to content

Commit 097ce66

Browse files
committed
added loading animation
1 parent 8f74fe4 commit 097ce66

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

frontend/src/index.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@
5050
animation: loading-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
5151
}
5252

53+
@keyframes show-after-delay {
54+
0%, 80% {
55+
opacity: 0;
56+
max-height: 0em;
57+
}
58+
93.3% {
59+
opacity: 0;
60+
max-height: 1.5em;
61+
}
62+
100% {
63+
opacity: 1;
64+
}
65+
}
66+
.animate-show-after-7s {
67+
animation: show-after-delay 5.5s forwards;
68+
}
69+
5370
.white-shadow {
5471
box-shadow: 0 -20px 16px 4px white;
5572
}

frontend/src/pages/chat/conversation/FileItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const FileItemComponent = ({ file, onRemove, loading }: FileItemProps) =>
3838
<div className="min-w-0 flex-grow">
3939
<div className="flex flex-col">
4040
<span className="truncate text-sm font-medium">{fileName}</span>
41+
<span className="animate-show-after-7s truncate text-sm font-medium text-orange-800 italic">Bitte warten...</span>
4142
</div>
4243
</div>
4344

0 commit comments

Comments
 (0)