@lobehub/chat 1.118.3 → 1.118.4
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 1.118.4](https://github.com/lobehub/lobe-chat/compare/v1.118.3...v1.118.4)
|
6
|
+
|
7
|
+
<sup>Released on **2025-08-29**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Fix chat session part switch theme issue.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Fix chat session part switch theme issue, closes [#8987](https://github.com/lobehub/lobe-chat/issues/8987) ([b7111be](https://github.com/lobehub/lobe-chat/commit/b7111be))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.118.3](https://github.com/lobehub/lobe-chat/compare/v1.118.2...v1.118.3)
|
6
31
|
|
7
32
|
<sup>Released on **2025-08-29**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.118.
|
3
|
+
"version": "1.118.4",
|
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",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
3
|
import { DraggablePanel, DraggablePanelContainer, type DraggablePanelProps } from '@lobehub/ui';
|
4
|
-
import { createStyles, useResponsive } from 'antd-style';
|
4
|
+
import { createStyles, useResponsive, useThemeMode } from 'antd-style';
|
5
5
|
import isEqual from 'fast-deep-equal';
|
6
6
|
import { PropsWithChildren, memo, useEffect, useMemo, useState } from 'react';
|
7
7
|
|
@@ -69,6 +69,8 @@ const SessionPanel = memo<PropsWithChildren>(({ children }) => {
|
|
69
69
|
if (!md) updatePreference({ showSessionPanel: false });
|
70
70
|
}, [md, cacheExpand]);
|
71
71
|
|
72
|
+
const { appearance } = useThemeMode();
|
73
|
+
|
72
74
|
const SessionPanel = useMemo(() => {
|
73
75
|
return (
|
74
76
|
<DraggablePanel
|
@@ -90,7 +92,7 @@ const SessionPanel = memo<PropsWithChildren>(({ children }) => {
|
|
90
92
|
</DraggablePanelContainer>
|
91
93
|
</DraggablePanel>
|
92
94
|
);
|
93
|
-
}, [sessionsWidth, md, isPinned, sessionExpandable, tmpWidth]);
|
95
|
+
}, [sessionsWidth, md, isPinned, sessionExpandable, tmpWidth, appearance]);
|
94
96
|
|
95
97
|
return SessionPanel;
|
96
98
|
});
|