@lobehub/chat 0.119.6 → 0.119.7

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.119.7](https://github.com/lobehub/lobe-chat/compare/v0.119.6...v0.119.7)
6
+
7
+ <sup>Released on **2024-01-07**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Improve share modal style.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Improve share modal style, closes [#965](https://github.com/lobehub/lobe-chat/issues/965) ([62c0573](https://github.com/lobehub/lobe-chat/commit/62c0573))
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.119.6](https://github.com/lobehub/lobe-chat/compare/v0.119.5...v0.119.6)
6
31
 
7
32
  <sup>Released on **2024-01-06**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.119.6",
3
+ "version": "0.119.7",
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",
@@ -4,13 +4,13 @@ import { memo, useMemo, useState } from 'react';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { Flexbox } from 'react-layout-kit';
6
6
 
7
- import { useScreenshot } from '@/app/chat/features/ChatHeader/ShareButton/useScreenshot';
8
7
  import { FORM_STYLE } from '@/const/layoutTokens';
9
8
  import { useChatStore } from '@/store/chat';
10
9
  import { useGlobalStore } from '@/store/global';
11
10
 
12
11
  import Preview from './Preview';
13
12
  import { FieldType, ImageType } from './type';
13
+ import { useScreenshot } from './useScreenshot';
14
14
 
15
15
  enum Tab {
16
16
  Screenshot = 'screenshot',
@@ -147,6 +147,7 @@ const ShareModal = memo<ModalProps>(({ onCancel, open }) => {
147
147
  style={{ width: '100%' }}
148
148
  value={tab}
149
149
  />
150
+ {tab === Tab.Screenshot && <Preview title={title} {...fieldValue} />}
150
151
  <Form
151
152
  initialValues={DEFAULT_FIELD_VALUE}
152
153
  items={settings}
@@ -154,7 +155,6 @@ const ShareModal = memo<ModalProps>(({ onCancel, open }) => {
154
155
  onValuesChange={(_, v) => setFieldValue(v)}
155
156
  {...FORM_STYLE}
156
157
  />
157
- {tab === Tab.Screenshot && <Preview title={title} {...fieldValue} />}
158
158
  </Flexbox>
159
159
  </Modal>
160
160
  );
@@ -10,7 +10,7 @@ const ChatList = memo(() => {
10
10
  const ids = useChatStore(chatSelectors.currentChatIDsWithGuideMessage);
11
11
 
12
12
  return (
13
- <Flexbox height={'100%'} style={{ position: 'relative' }}>
13
+ <Flexbox height={'100%'} style={{ paddingTop: 24, position: 'relative' }}>
14
14
  {ids.map((id, index) => (
15
15
  <Item id={id} index={index} key={id} />
16
16
  ))}