@bbki.ng/site 5.4.24 → 5.4.25

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
@@ -1,5 +1,11 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 5.4.25
4
+
5
+ ### Patch Changes
6
+
7
+ - 17a06a6: streaming page jsx
8
+
3
9
  ## 5.4.24
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "5.4.24",
3
+ "version": "5.4.25",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -66,35 +66,35 @@ const Streaming = () => {
66
66
  return <div className="p-8 text-center text-gray-500">加载失败</div>;
67
67
  }
68
68
 
69
+ if (isLoading) {
70
+ return null;
71
+ }
72
+
69
73
  return (
70
- <Article title="" loading={isLoading}>
71
- {isLoading ? null : (
72
- <>
73
- <Panel className="!p-[10px]">
74
- <bb-msg-history
75
- // infinite
76
- hide-scroll-bar
77
- hide-scroll-button
78
- ref={bbMsgHistoryRef}
79
- style={{ height: '100%', '--bb-max-height': '200px' } as React.CSSProperties}
80
- >
81
- {formattedData}
82
- </bb-msg-history>
83
- </Panel>
84
- {scrolled ? (
85
- <Button
86
- className="mt-64"
87
- transparent={!showScrollBtn}
88
- onClick={() => {
89
- bbMsgHistoryRef.current?.scrollToBottom();
90
- }}
91
- >
92
- <ArrowDownIcon show={showScrollBtn} />
93
- </Button>
94
- ) : null}
95
- </>
96
- )}
97
- </Article>
74
+ <>
75
+ <Panel className="!p-[10px]">
76
+ <bb-msg-history
77
+ // infinite
78
+ hide-scroll-bar
79
+ hide-scroll-button
80
+ ref={bbMsgHistoryRef}
81
+ style={{ height: '100%', '--bb-max-height': '300px' } as React.CSSProperties}
82
+ >
83
+ {formattedData}
84
+ </bb-msg-history>
85
+ </Panel>
86
+ {scrolled ? (
87
+ <Button
88
+ className="mt-64"
89
+ transparent={!showScrollBtn}
90
+ onClick={() => {
91
+ bbMsgHistoryRef.current?.scrollToBottom();
92
+ }}
93
+ >
94
+ <ArrowDownIcon show={showScrollBtn} />
95
+ </Button>
96
+ ) : null}
97
+ </>
98
98
  );
99
99
  };
100
100