@lobehub/chat 0.4.0 → 0.4.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,57 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.4.2](https://github.com/lobehub/lobe-chat/compare/v0.4.1...v0.4.2)
6
+
7
+ <sup>Released on **2023-07-22**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Fix input style, fix layout.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Fix input style ([504bd64](https://github.com/lobehub/lobe-chat/commit/504bd64))
21
+ - **misc**: Fix layout ([2d83aff](https://github.com/lobehub/lobe-chat/commit/2d83aff))
22
+
23
+ </details>
24
+
25
+ <div align="right">
26
+
27
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
28
+
29
+ </div>
30
+
31
+ ### [Version 0.4.1](https://github.com/lobehub/lobe-chat/compare/v0.4.0...v0.4.1)
32
+
33
+ <sup>Released on **2023-07-22**</sup>
34
+
35
+ #### 🐛 Bug Fixes
36
+
37
+ - **misc**: Fix SSR style error.
38
+
39
+ <br/>
40
+
41
+ <details>
42
+ <summary><kbd>Improvements and Fixes</kbd></summary>
43
+
44
+ #### What's fixed
45
+
46
+ - **misc**: Fix SSR style error ([289eae7](https://github.com/lobehub/lobe-chat/commit/289eae7))
47
+
48
+ </details>
49
+
50
+ <div align="right">
51
+
52
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
53
+
54
+ </div>
55
+
5
56
  ## [Version 0.4.0](https://github.com/lobehub/lobe-chat/compare/v0.3.0...v0.4.0)
6
57
 
7
58
  <sup>Released on **2023-07-20**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -2,7 +2,7 @@ import { StyleProvider, extractStaticStyle } from 'antd-style';
2
2
  import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document';
3
3
 
4
4
  class MyDocument extends Document {
5
- static async getStaticProps(ctx: DocumentContext) {
5
+ static async getInitialProps(ctx: DocumentContext) {
6
6
  const page = await ctx.renderPage({
7
7
  enhanceApp: (App) => (props) =>
8
8
  (
@@ -8,7 +8,7 @@ import ChatList from './ChatList';
8
8
 
9
9
  const Conversation = () => {
10
10
  return (
11
- <Flexbox flex={1}>
11
+ <Flexbox flex={1} style={{ position: 'relative' }}>
12
12
  <div style={{ flex: 1, overflowY: 'scroll' }}>
13
13
  <HeaderSpacing />
14
14
  <ChatList />
@@ -46,9 +46,10 @@ const Prompt = () => {
46
46
  updateAgentConfig({ systemRole: e });
47
47
  }}
48
48
  onEditingChange={setEditing}
49
+ showEditWhenEmpty
49
50
  value={systemRole}
50
51
  />
51
- {!editing && (
52
+ {!editing && !!systemRole && (
52
53
  <Flexbox direction={'horizontal-reverse'}>
53
54
  <Button
54
55
  onClick={() => {
@@ -23,9 +23,9 @@ const Chat = memo(() => {
23
23
  <Head>
24
24
  <title>{pageTitle}</title>
25
25
  </Head>
26
- <Flexbox id={'lobe-conversion-container'} style={{ height: '100vh', position: 'relative' }}>
26
+ <Flexbox id={'lobe-conversion-container'} style={{ height: '100vh' }}>
27
27
  <Header />
28
- <Flexbox flex={1} horizontal>
28
+ <Flexbox flex={1} height={'calc(100vh - 64px)'} horizontal>
29
29
  <Conversation />
30
30
  <Config />
31
31
  </Flexbox>