Spaces:
Running
Running
Commit
·
0cc4d1b
1
Parent(s):
92ce855
removing avatars
Browse files
frontend/src/components/Chat/ThinkingIndicator.tsx
CHANGED
|
@@ -1,63 +1,48 @@
|
|
| 1 |
-
import { Box,
|
| 2 |
-
import SmartToyOutlinedIcon from '@mui/icons-material/SmartToyOutlined';
|
| 3 |
|
| 4 |
/** Pulsing dots shown while the agent is processing. */
|
| 5 |
export default function ThinkingIndicator() {
|
| 6 |
return (
|
| 7 |
-
<
|
| 8 |
-
<
|
|
|
|
| 9 |
sx={{
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
| 15 |
}}
|
| 16 |
>
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
<Box sx={{ pt: 0.75 }}>
|
| 21 |
-
<Typography
|
| 22 |
-
variant="caption"
|
| 23 |
sx={{
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
}}
|
| 33 |
>
|
| 34 |
-
|
| 35 |
-
<
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
'& span': {
|
| 41 |
-
width: 4,
|
| 42 |
-
height: 4,
|
| 43 |
-
borderRadius: '50%',
|
| 44 |
-
bgcolor: 'primary.main',
|
| 45 |
-
animation: 'dotPulse 1.4s ease-in-out infinite',
|
| 46 |
-
},
|
| 47 |
-
'& span:nth-of-type(2)': { animationDelay: '0.2s' },
|
| 48 |
-
'& span:nth-of-type(3)': { animationDelay: '0.4s' },
|
| 49 |
-
'@keyframes dotPulse': {
|
| 50 |
-
'0%, 80%, 100%': { opacity: 0.25, transform: 'scale(0.8)' },
|
| 51 |
-
'40%': { opacity: 1, transform: 'scale(1)' },
|
| 52 |
-
},
|
| 53 |
-
}}
|
| 54 |
-
>
|
| 55 |
-
<span />
|
| 56 |
-
<span />
|
| 57 |
-
<span />
|
| 58 |
-
</Box>
|
| 59 |
-
</Typography>
|
| 60 |
-
</Box>
|
| 61 |
-
</Stack>
|
| 62 |
);
|
| 63 |
}
|
|
|
|
| 1 |
+
import { Box, Typography } from '@mui/material';
|
|
|
|
| 2 |
|
| 3 |
/** Pulsing dots shown while the agent is processing. */
|
| 4 |
export default function ThinkingIndicator() {
|
| 5 |
return (
|
| 6 |
+
<Box sx={{ pt: 0.75 }}>
|
| 7 |
+
<Typography
|
| 8 |
+
variant="caption"
|
| 9 |
sx={{
|
| 10 |
+
fontWeight: 700,
|
| 11 |
+
fontSize: '0.72rem',
|
| 12 |
+
color: 'var(--muted-text)',
|
| 13 |
+
textTransform: 'uppercase',
|
| 14 |
+
letterSpacing: '0.04em',
|
| 15 |
+
display: 'flex',
|
| 16 |
+
alignItems: 'center',
|
| 17 |
+
gap: 0.75,
|
| 18 |
}}
|
| 19 |
>
|
| 20 |
+
Thinking
|
| 21 |
+
<Box
|
| 22 |
+
component="span"
|
|
|
|
|
|
|
|
|
|
| 23 |
sx={{
|
| 24 |
+
display: 'inline-flex',
|
| 25 |
+
gap: '3px',
|
| 26 |
+
'& span': {
|
| 27 |
+
width: 4,
|
| 28 |
+
height: 4,
|
| 29 |
+
borderRadius: '50%',
|
| 30 |
+
bgcolor: 'primary.main',
|
| 31 |
+
animation: 'dotPulse 1.4s ease-in-out infinite',
|
| 32 |
+
},
|
| 33 |
+
'& span:nth-of-type(2)': { animationDelay: '0.2s' },
|
| 34 |
+
'& span:nth-of-type(3)': { animationDelay: '0.4s' },
|
| 35 |
+
'@keyframes dotPulse': {
|
| 36 |
+
'0%, 80%, 100%': { opacity: 0.25, transform: 'scale(0.8)' },
|
| 37 |
+
'40%': { opacity: 1, transform: 'scale(1)' },
|
| 38 |
+
},
|
| 39 |
}}
|
| 40 |
>
|
| 41 |
+
<span />
|
| 42 |
+
<span />
|
| 43 |
+
<span />
|
| 44 |
+
</Box>
|
| 45 |
+
</Typography>
|
| 46 |
+
</Box>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
);
|
| 48 |
}
|