Spaces:
Paused
Paused
Update flare-ui/src/app/components/chat/realtime-chat.component.scss
Browse files
flare-ui/src/app/components/chat/realtime-chat.component.scss
CHANGED
@@ -38,82 +38,14 @@ mat-card-header {
|
|
38 |
}
|
39 |
}
|
40 |
|
41 |
-
.transcription-area {
|
42 |
-
background: #e8f5e9;
|
43 |
-
padding: 16px;
|
44 |
-
border-radius: 8px;
|
45 |
-
margin-bottom: 16px;
|
46 |
-
min-height: 60px;
|
47 |
-
border: 2px solid #4caf50;
|
48 |
-
transition: all 0.3s ease;
|
49 |
-
opacity: 0.8;
|
50 |
-
|
51 |
-
&.active {
|
52 |
-
background: #c8e6c9;
|
53 |
-
border-color: #2e7d32;
|
54 |
-
box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
|
55 |
-
opacity: 1;
|
56 |
-
}
|
57 |
-
|
58 |
-
&.listening {
|
59 |
-
border-style: dashed;
|
60 |
-
animation: borderPulse 2s ease-in-out infinite;
|
61 |
-
}
|
62 |
-
|
63 |
-
.transcription-label {
|
64 |
-
font-size: 12px;
|
65 |
-
color: #2e7d32;
|
66 |
-
margin-bottom: 8px;
|
67 |
-
display: flex;
|
68 |
-
align-items: center;
|
69 |
-
gap: 8px;
|
70 |
-
|
71 |
-
.pulse-icon {
|
72 |
-
font-size: 16px;
|
73 |
-
animation: pulse 1.5s infinite;
|
74 |
-
color: #4caf50;
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
.transcription-text {
|
79 |
-
font-size: 16px;
|
80 |
-
color: #1b5e20;
|
81 |
-
min-height: 24px;
|
82 |
-
font-weight: 500;
|
83 |
-
|
84 |
-
&:empty::after {
|
85 |
-
content: '...';
|
86 |
-
color: #81c784;
|
87 |
-
animation: dots 1.5s infinite;
|
88 |
-
}
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
@keyframes borderPulse {
|
93 |
-
0%, 100% { border-color: #4caf50; }
|
94 |
-
50% { border-color: #81c784; }
|
95 |
-
}
|
96 |
-
|
97 |
-
@keyframes pulse {
|
98 |
-
0% { transform: scale(1); opacity: 1; }
|
99 |
-
50% { transform: scale(1.1); opacity: 0.8; }
|
100 |
-
100% { transform: scale(1); opacity: 1; }
|
101 |
-
}
|
102 |
-
|
103 |
-
@keyframes dots {
|
104 |
-
0%, 20% { content: '.'; }
|
105 |
-
40% { content: '..'; }
|
106 |
-
60%, 100% { content: '...'; }
|
107 |
-
}
|
108 |
-
|
109 |
.chat-messages {
|
110 |
flex: 1;
|
111 |
overflow-y: auto;
|
112 |
padding: 16px;
|
113 |
background: #fafafa;
|
114 |
border-radius: 8px;
|
115 |
-
min-height:
|
116 |
-
max-height:
|
117 |
}
|
118 |
|
119 |
.message {
|
@@ -205,43 +137,12 @@ mat-card-header {
|
|
205 |
overflow: hidden;
|
206 |
|
207 |
&.active {
|
208 |
-
opacity: 0.7;
|
209 |
-
background: #1a1a1a;
|
210 |
-
|
211 |
-
&::before {
|
212 |
-
content: '';
|
213 |
-
position: absolute;
|
214 |
-
top: 0;
|
215 |
-
left: 0;
|
216 |
-
right: 0;
|
217 |
-
bottom: 0;
|
218 |
-
background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
|
219 |
-
animation: scan 3s linear infinite;
|
220 |
-
}
|
221 |
-
}
|
222 |
-
|
223 |
-
&.recording {
|
224 |
opacity: 1;
|
225 |
-
|
226 |
-
|
227 |
-
&::before {
|
228 |
-
background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
|
229 |
-
animation: scan 1.5s linear infinite;
|
230 |
-
}
|
231 |
}
|
232 |
}
|
233 |
|
234 |
-
@keyframes scan {
|
235 |
-
0% { transform: translateX(-100%); }
|
236 |
-
100% { transform: translateX(100%); }
|
237 |
-
}
|
238 |
-
|
239 |
-
@keyframes visualizerPulse {
|
240 |
-
0% { transform: scale(1); }
|
241 |
-
50% { transform: scale(1.01); }
|
242 |
-
100% { transform: scale(1); }
|
243 |
-
}
|
244 |
-
|
245 |
mat-chip {
|
246 |
font-size: 12px;
|
247 |
}
|
|
|
38 |
}
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
.chat-messages {
|
42 |
flex: 1;
|
43 |
overflow-y: auto;
|
44 |
padding: 16px;
|
45 |
background: #fafafa;
|
46 |
border-radius: 8px;
|
47 |
+
min-height: 300px;
|
48 |
+
max-height: 450px;
|
49 |
}
|
50 |
|
51 |
.message {
|
|
|
137 |
overflow: hidden;
|
138 |
|
139 |
&.active {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
opacity: 1;
|
141 |
+
background: #1a1a1a;
|
142 |
+
box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
|
|
|
|
|
|
|
|
|
143 |
}
|
144 |
}
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
mat-chip {
|
147 |
font-size: 12px;
|
148 |
}
|