@lobehub/chat 1.55.3 → 1.55.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.55.4](https://github.com/lobehub/lobe-chat/compare/v1.55.3...v1.55.4)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-15**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Improve mobile params style.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Improve mobile params style, closes [#6176](https://github.com/lobehub/lobe-chat/issues/6176) ([b5276de](https://github.com/lobehub/lobe-chat/commit/b5276de))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.55.3](https://github.com/lobehub/lobe-chat/compare/v1.55.2...v1.55.3)
|
6
31
|
|
7
32
|
<sup>Released on **2025-02-15**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.55.
|
3
|
+
"version": "1.55.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",
|
@@ -126,13 +126,13 @@
|
|
126
126
|
"@lobehub/chat-plugins-gateway": "^1.9.0",
|
127
127
|
"@lobehub/icons": "^1.69.0",
|
128
128
|
"@lobehub/tts": "^1.28.0",
|
129
|
-
"@lobehub/ui": "^1.164.
|
129
|
+
"@lobehub/ui": "^1.164.15",
|
130
130
|
"@neondatabase/serverless": "^0.10.4",
|
131
131
|
"@next/third-parties": "^15.1.4",
|
132
132
|
"@react-spring/web": "^9.7.5",
|
133
133
|
"@sentry/nextjs": "^7.120.2",
|
134
134
|
"@serwist/next": "^9.0.11",
|
135
|
-
"@t3-oss/env-nextjs": "^0.
|
135
|
+
"@t3-oss/env-nextjs": "^0.12.0",
|
136
136
|
"@tanstack/react-query": "^5.62.16",
|
137
137
|
"@trpc/client": "next",
|
138
138
|
"@trpc/next": "next",
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Form, Tag } from '@lobehub/ui';
|
2
2
|
import type { FormItemProps } from '@lobehub/ui/es/Form/components/FormItem';
|
3
|
+
import { createStyles } from 'antd-style';
|
3
4
|
import isEqual from 'fast-deep-equal';
|
4
5
|
import { debounce } from 'lodash-es';
|
5
6
|
import { memo } from 'react';
|
@@ -16,10 +17,20 @@ import {
|
|
16
17
|
import { useAgentStore } from '@/store/agent';
|
17
18
|
import { agentSelectors } from '@/store/agent/selectors';
|
18
19
|
|
20
|
+
const useStyles = createStyles(({ css }) => ({
|
21
|
+
container: css`
|
22
|
+
.ant-form-group {
|
23
|
+
padding-inline: 0;
|
24
|
+
background: transparent;
|
25
|
+
}
|
26
|
+
`,
|
27
|
+
}));
|
28
|
+
|
19
29
|
interface ParamsControlsProps {
|
20
30
|
setUpdating: (updating: boolean) => void;
|
21
31
|
}
|
22
32
|
const ParamsControls = memo<ParamsControlsProps>(({ setUpdating }) => {
|
33
|
+
const { styles } = useStyles();
|
23
34
|
const { t } = useTranslation('setting');
|
24
35
|
|
25
36
|
const updateAgentConfig = useAgentStore((s) => s.updateAgentConfig);
|
@@ -75,13 +86,13 @@ const ParamsControls = memo<ParamsControlsProps>(({ setUpdating }) => {
|
|
75
86
|
|
76
87
|
return (
|
77
88
|
<Form
|
89
|
+
className={styles.container}
|
78
90
|
initialValues={config}
|
79
91
|
itemMinWidth={200}
|
80
92
|
items={items}
|
81
93
|
itemsType={'flat'}
|
82
94
|
onValuesChange={debounce(async (values) => {
|
83
95
|
setUpdating(true);
|
84
|
-
console.log(values);
|
85
96
|
await updateAgentConfig(values);
|
86
97
|
setUpdating(false);
|
87
98
|
}, 500)}
|
@@ -7,6 +7,7 @@ import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { Flexbox } from 'react-layout-kit';
|
8
8
|
|
9
9
|
import UpdateLoading from '@/components/Loading/UpdateLoading';
|
10
|
+
import { useIsMobile } from '@/hooks/useIsMobile';
|
10
11
|
|
11
12
|
import ParamsControls from './ParamsControls';
|
12
13
|
|
@@ -16,6 +17,7 @@ const Params = memo(() => {
|
|
16
17
|
const [isUpdating, setUpdating] = useState(false);
|
17
18
|
|
18
19
|
const theme = useTheme();
|
20
|
+
const isMobile = useIsMobile();
|
19
21
|
return (
|
20
22
|
<Popover
|
21
23
|
arrow={false}
|
@@ -24,7 +26,10 @@ const Params = memo(() => {
|
|
24
26
|
open={popoverOpen}
|
25
27
|
placement={'top'}
|
26
28
|
styles={{
|
27
|
-
body: {
|
29
|
+
body: {
|
30
|
+
minWidth: isMobile ? undefined : 400,
|
31
|
+
width: isMobile ? '100vw' : undefined,
|
32
|
+
},
|
28
33
|
}}
|
29
34
|
title={
|
30
35
|
<Flexbox horizontal justify={'space-between'}>
|