@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 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
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.52.1",
3
+ "version": "0.53.0",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -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
- <HeaderSpacing />
55
- {systemRole && <SystemRole />}
56
- <Flexbox height={'100%'} style={{ overflow: 'hidden' }}>
57
- <Flexbox padding={16}>
58
- <SearchBar placeholder={t('topic.searchPlaceholder')} spotlight type={'ghost'} />
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
- <Flexbox gap={16} paddingInline={16} style={{ overflowY: 'auto', position: 'relative' }}>
61
- <Topic />
62
- </Flexbox>
63
- </Flexbox>
67
+ </DraggablePanelContainer>
64
68
  </DraggablePanel>
65
69
  );
66
70
  });