akseljoonas HF Staff commited on
Commit
0cc4d1b
·
1 Parent(s): 92ce855

removing avatars

Browse files
frontend/src/components/Chat/ThinkingIndicator.tsx CHANGED
@@ -1,63 +1,48 @@
1
- import { Box, Stack, Avatar, Typography } from '@mui/material';
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
- <Stack direction="row" spacing={1.5} alignItems="flex-start">
8
- <Avatar
 
9
  sx={{
10
- width: 28,
11
- height: 28,
12
- bgcolor: 'primary.main',
13
- flexShrink: 0,
14
- mt: 0.5,
 
 
 
15
  }}
16
  >
17
- <SmartToyOutlinedIcon sx={{ fontSize: 16, color: '#fff' }} />
18
- </Avatar>
19
-
20
- <Box sx={{ pt: 0.75 }}>
21
- <Typography
22
- variant="caption"
23
  sx={{
24
- fontWeight: 700,
25
- fontSize: '0.72rem',
26
- color: 'var(--muted-text)',
27
- textTransform: 'uppercase',
28
- letterSpacing: '0.04em',
29
- display: 'flex',
30
- alignItems: 'center',
31
- gap: 0.75,
 
 
 
 
 
 
 
32
  }}
33
  >
34
- Thinking
35
- <Box
36
- component="span"
37
- sx={{
38
- display: 'inline-flex',
39
- gap: '3px',
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
  }