@lobehub/chat 0.22.1 → 0.22.2

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.22.2](https://github.com/lobehub/lobe-chat/compare/v0.22.1...v0.22.2)
6
+
7
+ <sup>Released on **2023-07-26**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: 优化 tooltip 显示.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: 优化 tooltip 显示 ([4ba0295](https://github.com/lobehub/lobe-chat/commit/4ba0295))
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.22.1](https://github.com/lobehub/lobe-chat/compare/v0.22.0...v0.22.1)
6
31
 
7
32
  <sup>Released on **2023-07-25**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -20,7 +20,7 @@ const SliderWithInput = memo<SliderSingleProps>(
20
20
  onChange={handleOnchange}
21
21
  step={step}
22
22
  style={{ flex: 1 }}
23
- tooltip={{ open: false }}
23
+ tooltip={{ getPopupContainer: (triggerNode) => triggerNode }}
24
24
  value={typeof value === 'number' ? value : 0}
25
25
  {...props}
26
26
  />
@@ -36,7 +36,7 @@ const InputActions = memo(() => {
36
36
  }}
37
37
  trigger={['click']}
38
38
  >
39
- <ActionIcon icon={BrainCog} title={t('settingModel.model.title')} />
39
+ <ActionIcon icon={BrainCog} placement={'bottom'} title={t('settingModel.model.title')} />
40
40
  </Dropdown>
41
41
  <Popover
42
42
  content={
@@ -55,6 +55,7 @@ const InputActions = memo(() => {
55
55
  >
56
56
  <ActionIcon
57
57
  icon={Thermometer}
58
+ placement={'bottom'}
58
59
  title={t('settingModel.temperature.titleWithValue', { value: temperature })}
59
60
  />
60
61
  </Popover>
@@ -82,7 +83,11 @@ const InputActions = memo(() => {
82
83
  onConfirm={() => clearMessage()}
83
84
  title={t('confirmClearCurrentMessages', { ns: 'common' })}
84
85
  >
85
- <ActionIcon icon={Eraser} title={t('clearCurrentMessages', { ns: 'common' })} />
86
+ <ActionIcon
87
+ icon={Eraser}
88
+ placement={'bottom'}
89
+ title={t('clearCurrentMessages', { ns: 'common' })}
90
+ />
86
91
  </Popconfirm>
87
92
  </>
88
93
  );