@lobehub/chat 0.27.0 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.27.1](https://github.com/lobehub/lobe-chat/compare/v0.27.0...v0.27.1)
6
+
7
+ <sup>Released on **2023-07-29**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: 优化搜索引擎样式.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: 优化搜索引擎样式 ([699afb3](https://github.com/lobehub/lobe-chat/commit/699afb3))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 0.27.0](https://github.com/lobehub/lobe-chat/compare/v0.26.1...v0.27.0)
6
31
 
7
32
  <sup>Released on **2023-07-29**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -41,44 +41,45 @@ const useStyles = createStyles(({ css, token, cx }) => {
41
41
  const Render = memo<PluginRenderProps<Result>>(({ content }) => {
42
42
  const { styles } = useStyles();
43
43
  return (
44
- <Flexbox gap={8}>
45
- <Flexbox>
46
- {content.map((item) => (
47
- <Flexbox
48
- className={styles.container}
49
- distribution={'space-between'}
50
- horizontal
51
- key={item.link}
52
- padding={12}
53
- >
54
- <Flexbox>
55
- <Link className={styles.link} href={item.link!} target={'_blank'}>
56
- <Flexbox>
57
- <Flexbox align={'center'} gap={12} horizontal>
58
- {item.favicon && (
59
- <img
60
- alt={item.title || item.link}
61
- className={styles.favicon}
62
- height={24}
63
- src={item.favicon}
64
- width={24}
65
- />
66
- )}
67
- <Flexbox>
68
- <Flexbox className={styles.desc}>{item.source}</Flexbox>
69
- <Flexbox className={styles.displayLink}>{item.displayed_link}</Flexbox>
70
- </Flexbox>
44
+ <Flexbox>
45
+ {content.map((item, index) => (
46
+ <Flexbox
47
+ className={styles.container}
48
+ distribution={'space-between'}
49
+ horizontal
50
+ key={item.link}
51
+ padding={12}
52
+ >
53
+ <Flexbox>
54
+ <Link className={styles.link} href={item.link!} target={'_blank'}>
55
+ <Flexbox>
56
+ <Flexbox align={'center'} gap={12} horizontal>
57
+ {item.favicon && (
58
+ <img
59
+ alt={item.title || item.link}
60
+ className={styles.favicon}
61
+ height={24}
62
+ src={item.favicon}
63
+ width={24}
64
+ />
65
+ )}
66
+ <Flexbox>
67
+ <Flexbox className={styles.desc}>{item.source}</Flexbox>
68
+ <Flexbox className={styles.displayLink}>{item.displayed_link}</Flexbox>
71
69
  </Flexbox>
70
+ </Flexbox>
71
+ <Flexbox align={'baseline'} gap={2} horizontal>
72
+ <div>{index + 1}.</div>
72
73
  <Flexbox className={styles.title}>{item.title}</Flexbox>
73
74
  </Flexbox>
74
- </Link>
75
- <Flexbox className={styles.desc}>
76
- {item.date ? `${item.date} - ${item.content}` : item.content}
77
75
  </Flexbox>
76
+ </Link>
77
+ <Flexbox className={styles.desc}>
78
+ {item.date ? `${item.date} - ${item.content}` : item.content}
78
79
  </Flexbox>
79
80
  </Flexbox>
80
- ))}
81
- </Flexbox>
81
+ </Flexbox>
82
+ ))}
82
83
  </Flexbox>
83
84
  );
84
85
  });