@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 +25 -0
- package/package.json +1 -1
- package/src/plugins/searchEngine/Render.tsx +9 -5
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
|
+
[](#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
|
@@ -14,9 +14,8 @@ const useStyles = createStyles(({ css, token, cx }) => {
|
|
|
14
14
|
`;
|
|
15
15
|
return {
|
|
16
16
|
container: css`
|
|
17
|
-
:
|
|
18
|
-
|
|
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.
|
|
51
|
+
className={styles.item}
|
|
48
52
|
distribution={'space-between'}
|
|
49
53
|
horizontal
|
|
50
54
|
key={item.link}
|