@lobehub/chat 0.155.6 → 0.155.7
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.155.7](https://github.com/lobehub/lobe-chat/compare/v0.155.6...v0.155.7)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-05-08**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix panel expand.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix panel expand ([5e78089](https://github.com/lobehub/lobe-chat/commit/5e78089))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.155.6](https://github.com/lobehub/lobe-chat/compare/v0.155.5...v0.155.6)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-05-08**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.155.
|
|
3
|
+
"version": "0.155.7",
|
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -33,6 +33,11 @@ const TopicPanel = memo(({ children }: PropsWithChildren) => {
|
|
|
33
33
|
]);
|
|
34
34
|
const [expand, setExpand] = useState(showAgentSettings);
|
|
35
35
|
|
|
36
|
+
const handleExpand = (e: boolean) => {
|
|
37
|
+
toggleConfig(e);
|
|
38
|
+
setExpand(e);
|
|
39
|
+
};
|
|
40
|
+
|
|
36
41
|
useLayoutEffect(() => {
|
|
37
42
|
if (!isPreferenceInit) return;
|
|
38
43
|
setExpand(showAgentSettings);
|
|
@@ -52,7 +57,7 @@ const TopicPanel = memo(({ children }: PropsWithChildren) => {
|
|
|
52
57
|
expand={expand}
|
|
53
58
|
minWidth={CHAT_SIDEBAR_WIDTH}
|
|
54
59
|
mode={md ? 'fixed' : 'float'}
|
|
55
|
-
onExpandChange={
|
|
60
|
+
onExpandChange={handleExpand}
|
|
56
61
|
placement={'right'}
|
|
57
62
|
showHandlerWideArea={false}
|
|
58
63
|
>
|
|
@@ -31,11 +31,12 @@ const SessionPanel = memo<PropsWithChildren>(({ children }) => {
|
|
|
31
31
|
const [tmpWidth, setWidth] = useState(sessionsWidth);
|
|
32
32
|
if (tmpWidth !== sessionsWidth) setWidth(sessionsWidth);
|
|
33
33
|
|
|
34
|
-
const handleExpand: DraggablePanelProps['onExpandChange'] = (
|
|
34
|
+
const handleExpand: DraggablePanelProps['onExpandChange'] = (e) => {
|
|
35
35
|
updatePreference({
|
|
36
|
-
sessionsWidth:
|
|
37
|
-
showSessionPanel:
|
|
36
|
+
sessionsWidth: e ? 320 : 0,
|
|
37
|
+
showSessionPanel: e,
|
|
38
38
|
});
|
|
39
|
+
setExpand(e);
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
const handleSizeChange: DraggablePanelProps['onSizeChange'] = (_, size) => {
|