@lobehub/chat 0.30.0 → 0.30.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.30.1](https://github.com/lobehub/lobe-chat/compare/v0.30.0...v0.30.1)
6
+
7
+ <sup>Released on **2023-07-30**</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**: 优化搜索引擎插件展示 ([347e6b0](https://github.com/lobehub/lobe-chat/commit/347e6b0))
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.30.0](https://github.com/lobehub/lobe-chat/compare/v0.29.0...v0.30.0)
6
31
 
7
32
  <sup>Released on **2023-07-30**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -14,9 +14,8 @@ const useStyles = createStyles(({ css, token, cx }) => {
14
14
  `;
15
15
  return {
16
16
  container: css`
17
- :not(:last-child) {
18
- border-bottom: 1px solid ${token.colorBorder};
19
- }
17
+ overflow: scroll;
18
+ max-height: 370px;
20
19
  `,
21
20
  desc: css`
22
21
  color: ${token.colorTextTertiary};
@@ -27,6 +26,11 @@ const useStyles = createStyles(({ css, token, cx }) => {
27
26
  favicon: css`
28
27
  border-radius: 50%;
29
28
  `,
29
+ item: css`
30
+ :not(:last-child) {
31
+ border-bottom: 1px solid ${token.colorBorder};
32
+ }
33
+ `,
30
34
  link: css`
31
35
  &:hover {
32
36
  .${cx(title)} {
@@ -41,10 +45,10 @@ const useStyles = createStyles(({ css, token, cx }) => {
41
45
  const Render = memo<PluginRenderProps<Result>>(({ content }) => {
42
46
  const { styles } = useStyles();
43
47
  return (
44
- <Flexbox>
48
+ <Flexbox className={styles.container}>
45
49
  {content.map((item, index) => (
46
50
  <Flexbox
47
- className={styles.container}
51
+ className={styles.item}
48
52
  distribution={'space-between'}
49
53
  horizontal
50
54
  key={item.link}