@lobehub/chat 0.90.0 → 0.90.1

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.90.1](https://github.com/lobehub/lobe-chat/compare/v0.90.0...v0.90.1)
6
+
7
+ <sup>Released on **2023-10-17**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Fix lazyload height.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Fix lazyload height ([98efe02](https://github.com/lobehub/lobe-chat/commit/98efe02))
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.90.0](https://github.com/lobehub/lobe-chat/compare/v0.89.10...v0.90.0)
6
31
 
7
32
  <sup>Released on **2023-10-17**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.90.0",
3
+ "version": "0.90.1",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -1,4 +1,4 @@
1
- import { useResponsive } from 'antd-style';
1
+ import { createStyles, useResponsive } from 'antd-style';
2
2
  import isEqual from 'fast-deep-equal';
3
3
  import Link from 'next/link';
4
4
  import { memo } from 'react';
@@ -12,10 +12,16 @@ import AddButton from './AddButton';
12
12
  import SessionItem from './Item';
13
13
  import SkeletonList from './SkeletonList';
14
14
 
15
+ const useStyles = createStyles(
16
+ ({ css }) => css`
17
+ min-height: 70px;
18
+ `,
19
+ );
20
+
15
21
  const SessionList = memo(() => {
16
22
  const list = useSessionStore(sessionSelectors.sessionList, isEqual);
17
23
  const [activeSession, switchSession] = useSessionStore((s) => [s.activeSession, s.switchSession]);
18
-
24
+ const { styles } = useStyles();
19
25
  const isInit = useSessionHydrated();
20
26
 
21
27
  const { mobile } = useResponsive();
@@ -24,7 +30,7 @@ const SessionList = memo(() => {
24
30
  <SkeletonList />
25
31
  ) : list.length > 0 ? (
26
32
  list.map(({ id }) => (
27
- <LazyLoad height={70} key={id}>
33
+ <LazyLoad className={styles} key={id}>
28
34
  <Link
29
35
  aria-label={id}
30
36
  href={SESSION_CHAT_URL(id, mobile)}