@lobehub/chat 0.52.1 → 0.53.0
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/pages/chat/features/Sidebar/index.tsx +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 0.53.0](https://github.com/lobehub/lobe-chat/compare/v0.52.1...v0.53.0)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-08-15**</sup>
|
|
8
|
+
|
|
9
|
+
#### ✨ Features
|
|
10
|
+
|
|
11
|
+
- **sidebar**: Add DraggablePanelContainer and adjust layout and styling.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's improved
|
|
19
|
+
|
|
20
|
+
- **sidebar**: Add DraggablePanelContainer and adjust layout and styling ([e8c384f](https://github.com/lobehub/lobe-chat/commit/e8c384f))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.52.1](https://github.com/lobehub/lobe-chat/compare/v0.52.0...v0.52.1)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-08-15**</sup>
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DraggablePanel, SearchBar } from '@lobehub/ui';
|
|
1
|
+
import { DraggablePanel, DraggablePanelContainer, SearchBar } from '@lobehub/ui';
|
|
2
2
|
import { createStyles } from 'antd-style';
|
|
3
3
|
import { rgba } from 'polished';
|
|
4
4
|
import { memo } from 'react';
|
|
@@ -51,16 +51,20 @@ const SideBar = memo<SideBarProps>(({ systemRole = true }) => {
|
|
|
51
51
|
onExpandChange={toggleConfig}
|
|
52
52
|
placement={'right'}
|
|
53
53
|
>
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
54
|
+
<DraggablePanelContainer
|
|
55
|
+
style={{ flex: 'none', height: '100%', minWidth: CHAT_SIDEBAR_WIDTH }}
|
|
56
|
+
>
|
|
57
|
+
<HeaderSpacing />
|
|
58
|
+
{systemRole && <SystemRole />}
|
|
59
|
+
<Flexbox height={'100%'} style={{ overflow: 'hidden' }}>
|
|
60
|
+
<Flexbox padding={16}>
|
|
61
|
+
<SearchBar placeholder={t('topic.searchPlaceholder')} spotlight type={'ghost'} />
|
|
62
|
+
</Flexbox>
|
|
63
|
+
<Flexbox gap={16} paddingInline={16} style={{ overflowY: 'auto', position: 'relative' }}>
|
|
64
|
+
<Topic />
|
|
65
|
+
</Flexbox>
|
|
59
66
|
</Flexbox>
|
|
60
|
-
|
|
61
|
-
<Topic />
|
|
62
|
-
</Flexbox>
|
|
63
|
-
</Flexbox>
|
|
67
|
+
</DraggablePanelContainer>
|
|
64
68
|
</DraggablePanel>
|
|
65
69
|
);
|
|
66
70
|
});
|