@lobehub/chat 1.27.1 → 1.27.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,39 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.27.2](https://github.com/lobehub/lobe-chat/compare/v1.27.1...v1.27.2)
|
6
|
+
|
7
|
+
<sup>Released on **2024-11-05**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Remove the 'resetConversation' hot key tip.
|
12
|
+
|
13
|
+
#### 💄 Styles
|
14
|
+
|
15
|
+
- **misc**: Improve group topic styles.
|
16
|
+
|
17
|
+
<br/>
|
18
|
+
|
19
|
+
<details>
|
20
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
21
|
+
|
22
|
+
#### What's fixed
|
23
|
+
|
24
|
+
- **misc**: Remove the 'resetConversation' hot key tip, closes [#4607](https://github.com/lobehub/lobe-chat/issues/4607) ([1a13562](https://github.com/lobehub/lobe-chat/commit/1a13562))
|
25
|
+
|
26
|
+
#### Styles
|
27
|
+
|
28
|
+
- **misc**: Improve group topic styles, closes [#4610](https://github.com/lobehub/lobe-chat/issues/4610) ([65e816a](https://github.com/lobehub/lobe-chat/commit/65e816a))
|
29
|
+
|
30
|
+
</details>
|
31
|
+
|
32
|
+
<div align="right">
|
33
|
+
|
34
|
+
[](#readme-top)
|
35
|
+
|
36
|
+
</div>
|
37
|
+
|
5
38
|
### [Version 1.27.1](https://github.com/lobehub/lobe-chat/compare/v1.27.0...v1.27.1)
|
6
39
|
|
7
40
|
<sup>Released on **2024-11-04**</sup>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.27.
|
3
|
+
"version": "1.27.2",
|
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",
|
package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ByTimeMode/GroupItem.tsx
CHANGED
@@ -9,10 +9,16 @@ import { GroupedTopic } from '@/types/topic';
|
|
9
9
|
const preformat = (id: string) =>
|
10
10
|
id.startsWith('20') ? (id.includes('-') ? dayjs(id).format('MMMM') : id) : undefined;
|
11
11
|
|
12
|
-
const useStyles = createStyles(({ css, token,
|
12
|
+
const useStyles = createStyles(({ css, token, responsive }) => ({
|
13
13
|
container: css`
|
14
14
|
color: ${token.colorTextQuaternary};
|
15
|
-
${
|
15
|
+
background: ${token.colorBgLayout};
|
16
|
+
box-shadow: 0 3px 4px -2px ${token.colorBgLayout};
|
17
|
+
|
18
|
+
${responsive.mobile} {
|
19
|
+
background: ${token.colorBgElevated};
|
20
|
+
box-shadow: 0 3px 4px -2px ${token.colorBgElevated};
|
21
|
+
}
|
16
22
|
`,
|
17
23
|
}));
|
18
24
|
|
@@ -22,7 +28,7 @@ const TopicGroupItem = memo<Omit<GroupedTopic, 'children'>>(({ id, title }) => {
|
|
22
28
|
const timeTitle = preformat(id) ?? t(`groupTitle.byTime.${id}` as any);
|
23
29
|
|
24
30
|
return (
|
25
|
-
<Flexbox className={styles.container} paddingBlock={
|
31
|
+
<Flexbox className={styles.container} paddingBlock={'12px 8px'} paddingInline={12}>
|
26
32
|
{title ? title : timeTitle}
|
27
33
|
</Flexbox>
|
28
34
|
);
|
@@ -4,8 +4,6 @@ import { Eraser } from 'lucide-react';
|
|
4
4
|
import { memo, useCallback, useState } from 'react';
|
5
5
|
import { useTranslation } from 'react-i18next';
|
6
6
|
|
7
|
-
import HotKeys from '@/components/HotKeys';
|
8
|
-
import { ALT_KEY, CLEAN_MESSAGE_KEY, META_KEY } from '@/const/hotkeys';
|
9
7
|
import { useIsMobile } from '@/hooks/useIsMobile';
|
10
8
|
import { useChatStore } from '@/store/chat';
|
11
9
|
import { useFileStore } from '@/store/file';
|
@@ -14,7 +12,6 @@ const Clear = memo(() => {
|
|
14
12
|
const { t } = useTranslation('setting');
|
15
13
|
const [clearMessage] = useChatStore((s) => [s.clearMessage]);
|
16
14
|
const [clearImageList] = useFileStore((s) => [s.clearChatUploadFileList]);
|
17
|
-
const hotkeys = [META_KEY, ALT_KEY, CLEAN_MESSAGE_KEY].join('+');
|
18
15
|
const [confirmOpened, updateConfirmOpened] = useState(false);
|
19
16
|
const mobile = useIsMobile();
|
20
17
|
|
@@ -23,11 +20,7 @@ const Clear = memo(() => {
|
|
23
20
|
clearImageList();
|
24
21
|
}, []);
|
25
22
|
|
26
|
-
const actionTitle: any = confirmOpened ? (
|
27
|
-
void 0
|
28
|
-
) : (
|
29
|
-
<HotKeys desc={t('clearCurrentMessages', { ns: 'chat' })} inverseTheme keys={hotkeys} />
|
30
|
-
);
|
23
|
+
const actionTitle: any = confirmOpened ? void 0 : t('clearCurrentMessages', { ns: 'chat' });
|
31
24
|
|
32
25
|
const popconfirmPlacement = mobile ? 'top' : 'topRight';
|
33
26
|
|