@lobehub/chat 1.129.4 → 1.130.0

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.130.0](https://github.com/lobehub/lobe-chat/compare/v1.129.4...v1.130.0)
6
+
7
+ <sup>Released on **2025-09-18**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **misc**: Add scroll support for pinned assistants using ScrollShadow.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **misc**: Add scroll support for pinned assistants using ScrollShadow, closes [#9319](https://github.com/lobehub/lobe-chat/issues/9319) [#9316](https://github.com/lobehub/lobe-chat/issues/9316) ([54c0ac4](https://github.com/lobehub/lobe-chat/commit/54c0ac4))
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 1.129.4](https://github.com/lobehub/lobe-chat/compare/v1.129.3...v1.129.4)
6
31
 
7
32
  <sup>Released on **2025-09-18**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "features": [
5
+ "Add scroll support for pinned assistants using ScrollShadow."
6
+ ]
7
+ },
8
+ "date": "2025-09-18",
9
+ "version": "1.130.0"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.129.4",
3
+ "version": "1.130.0",
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",
@@ -1,4 +1,4 @@
1
- import { Avatar, Tooltip } from '@lobehub/ui';
1
+ import { Avatar, ScrollShadow, Tooltip } from '@lobehub/ui';
2
2
  import { Divider } from 'antd';
3
3
  import { createStyles } from 'antd-style';
4
4
  import isEqual from 'fast-deep-equal';
@@ -82,33 +82,35 @@ const PinList = () => {
82
82
  hasList && (
83
83
  <>
84
84
  <Divider style={{ marginBottom: 8, marginTop: 4 }} />
85
- <Flexbox flex={1} gap={12} height={'100%'}>
86
- {list.slice(0, 9).map((item, index) => (
87
- <Flexbox key={item.id} style={{ position: 'relative' }}>
88
- <Tooltip
89
- hotkey={hotkey.replaceAll(KeyEnum.Number, String(index + 1))}
90
- placement={'right'}
91
- title={sessionHelpers.getTitle(item.meta)}
92
- >
93
- <Flexbox
94
- className={cx(
95
- styles.ink,
96
- isPinned && activeId === item.id ? styles.inkActive : undefined,
97
- )}
85
+ <ScrollShadow height={"100%"} hideScrollBar={true} size={40}>
86
+ <Flexbox gap={12} style={{ padding: '0' }}>
87
+ {list.map((item, index) => (
88
+ <Flexbox key={item.id} style={{ position: 'relative' }}>
89
+ <Tooltip
90
+ hotkey={index < 9 ? hotkey.replaceAll(KeyEnum.Number, String(index + 1)) : undefined}
91
+ placement={'right'}
92
+ title={sessionHelpers.getTitle(item.meta)}
98
93
  >
99
- <Avatar
100
- avatar={sessionHelpers.getAvatar(item.meta)}
101
- background={item.meta.backgroundColor}
102
- onClick={() => {
103
- switchAgent(item.id);
104
- }}
105
- size={40}
106
- />
107
- </Flexbox>
108
- </Tooltip>
109
- </Flexbox>
110
- ))}
111
- </Flexbox>
94
+ <Flexbox
95
+ className={cx(
96
+ styles.ink,
97
+ isPinned && activeId === item.id ? styles.inkActive : undefined,
98
+ )}
99
+ >
100
+ <Avatar
101
+ avatar={sessionHelpers.getAvatar(item.meta)}
102
+ background={item.meta.backgroundColor}
103
+ onClick={() => {
104
+ switchAgent(item.id);
105
+ }}
106
+ size={40}
107
+ />
108
+ </Flexbox>
109
+ </Tooltip>
110
+ </Flexbox>
111
+ ))}
112
+ </Flexbox>
113
+ </ScrollShadow>
112
114
  </>
113
115
  )
114
116
  );
@@ -52,7 +52,11 @@ const Nav = memo(() => {
52
52
  }}
53
53
  topActions={
54
54
  <Suspense>
55
- <div className={electronStylish.nodrag}>
55
+ <div className={electronStylish.nodrag} style={{
56
+ display: 'flex',
57
+ flexDirection: 'column',
58
+ maxHeight: "calc(100vh - 150px)"
59
+ }}>
56
60
  <Top />
57
61
  {showPinList && <PinList />}
58
62
  </div>