@lobehub/chat 0.80.0 → 0.80.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.80.1](https://github.com/lobehub/lobe-chat/compare/v0.80.0...v0.80.1)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-09-27**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix conversation mobile viewarea.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix conversation mobile viewarea ([6668e11](https://github.com/lobehub/lobe-chat/commit/6668e11))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 0.80.0](https://github.com/lobehub/lobe-chat/compare/v0.79.8...v0.80.0)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-09-27**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.80.
|
|
3
|
+
"version": "0.80.1",
|
|
4
4
|
"description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chatbot",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChatList, RenderMessage } from '@lobehub/ui';
|
|
2
|
-
import { createStyles } from 'antd-style';
|
|
3
2
|
import isEqual from 'fast-deep-equal';
|
|
4
3
|
import { memo, useCallback } from 'react';
|
|
5
4
|
import { useTranslation } from 'react-i18next';
|
|
@@ -16,22 +15,9 @@ import FunctionCall from './Plugins/FunctionCall';
|
|
|
16
15
|
import PluginMessage from './Plugins/PluginMessage';
|
|
17
16
|
import SkeletonList from './SkeletonList';
|
|
18
17
|
|
|
19
|
-
const useStyles = createStyles(({ css, responsive, cx, stylish }) =>
|
|
20
|
-
cx(
|
|
21
|
-
stylish.noScrollbar,
|
|
22
|
-
css`
|
|
23
|
-
overflow-x: hidden;
|
|
24
|
-
${responsive.mobile} {
|
|
25
|
-
width: 100vw;
|
|
26
|
-
}
|
|
27
|
-
`,
|
|
28
|
-
),
|
|
29
|
-
);
|
|
30
|
-
|
|
31
18
|
const List = memo(() => {
|
|
32
19
|
const init = useSessionChatInit();
|
|
33
20
|
const { t } = useTranslation('common');
|
|
34
|
-
const { styles } = useStyles();
|
|
35
21
|
const data = useSessionStore(chatSelectors.currentChatsWithGuideMessage, isEqual);
|
|
36
22
|
|
|
37
23
|
const [
|
|
@@ -96,7 +82,6 @@ const List = memo(() => {
|
|
|
96
82
|
|
|
97
83
|
return (
|
|
98
84
|
<ChatList
|
|
99
|
-
className={styles}
|
|
100
85
|
data={data}
|
|
101
86
|
enableHistoryCount={enableHistoryCount}
|
|
102
87
|
historyCount={historyCount}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BackBottom } from '@lobehub/ui';
|
|
2
|
+
import { createStyles } from 'antd-style';
|
|
2
3
|
import { memo, useRef } from 'react';
|
|
3
4
|
import { useTranslation } from 'react-i18next';
|
|
4
5
|
import { Flexbox } from 'react-layout-kit';
|
|
@@ -10,9 +11,22 @@ import ChatList from './ChatList';
|
|
|
10
11
|
import ChatInput from './Input';
|
|
11
12
|
import ChatScrollAnchor from './ScrollAnchor';
|
|
12
13
|
|
|
14
|
+
const useStyles = createStyles(
|
|
15
|
+
({ css, responsive, stylish }) => css`
|
|
16
|
+
overflow-x: hidden;
|
|
17
|
+
overflow-y: scroll;
|
|
18
|
+
height: 100%;
|
|
19
|
+
${responsive.mobile} {
|
|
20
|
+
${stylish.noScrollbar}
|
|
21
|
+
width: 100vw;
|
|
22
|
+
}
|
|
23
|
+
`,
|
|
24
|
+
);
|
|
25
|
+
|
|
13
26
|
const Conversation = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
14
27
|
const ref = useRef(null);
|
|
15
28
|
const { t } = useTranslation('common');
|
|
29
|
+
const { styles } = useStyles();
|
|
16
30
|
|
|
17
31
|
const useFetchPluginList = usePluginStore((s) => s.useFetchPluginList);
|
|
18
32
|
useFetchPluginList();
|
|
@@ -20,7 +34,7 @@ const Conversation = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
|
20
34
|
return (
|
|
21
35
|
<Flexbox flex={1} style={{ position: 'relative' }}>
|
|
22
36
|
<div style={{ flex: 1, overflow: 'hidden', position: 'relative' }}>
|
|
23
|
-
<div
|
|
37
|
+
<div className={styles} ref={ref}>
|
|
24
38
|
{!mobile && <SafeSpacing />}
|
|
25
39
|
<ChatList />
|
|
26
40
|
<ChatScrollAnchor />
|
|
@@ -4,7 +4,7 @@ export const HEADER_HEIGHT = 64;
|
|
|
4
4
|
export const MOBILE_NABBAR_HEIGHT = 44;
|
|
5
5
|
export const MOBILE_TABBAR_HEIGHT = 48;
|
|
6
6
|
export const CHAT_TEXTAREA_HEIGHT = 200;
|
|
7
|
-
export const CHAT_TEXTAREA_HEIGHT_MOBILE =
|
|
7
|
+
export const CHAT_TEXTAREA_HEIGHT_MOBILE = 120;
|
|
8
8
|
export const CHAT_SIDEBAR_WIDTH = 280;
|
|
9
9
|
export const MARKET_SIDEBAR_WIDTH = 400;
|
|
10
10
|
export const FOLDER_WIDTH = 256;
|