@bbki.ng/site 5.4.6 → 5.4.8

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,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 5.4.8
4
+
5
+ ## 5.4.7
6
+
3
7
  ## 5.4.6
4
8
 
5
9
  ## 5.4.5
package/index.html CHANGED
@@ -55,7 +55,7 @@
55
55
  </style>
56
56
  <script src="https://unpkg.com/open-heart-element" type="module"></script>
57
57
  <script type="module" src="https://cdn.jsdelivr.net/npm/@bbki.ng/bbimg@0.0.3/dist/index.js"></script>
58
- <script type="module" src="https://cdn.jsdelivr.net/npm/@bbki.ng/bb-msg-history@0.7.3/dist/index.js"></script>
58
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@bbki.ng/bb-msg-history@0.9.0/dist/index.js"></script>
59
59
  </head>
60
60
 
61
61
  <body class="h-full m-0 flex flex-col font-mono">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "5.4.6",
3
+ "version": "5.4.8",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -24,6 +24,18 @@ const Streaming = () => {
24
24
  const { streaming, isLoading, isError } = useStreaming();
25
25
  const bbMsgHistoryRef = useRef<BbMsgHistoryElement>(null);
26
26
 
27
+ useEffect(() => {
28
+ const $blog = document.querySelector("#blog") as HTMLDivElement | null;
29
+ if (!$blog) return;
30
+
31
+ // disable scroll
32
+ $blog.style.overflow = "hidden";
33
+
34
+ return () => {
35
+ $blog.style.overflow = "auto";
36
+ }
37
+ }, [])
38
+
27
39
  if (isError) {
28
40
  return <div className="p-8 text-center text-gray-500">加载失败</div>;
29
41
  }
@@ -37,6 +49,7 @@ const Streaming = () => {
37
49
  return (
38
50
  <div className="h-full w-full p-4">
39
51
  <bb-msg-history
52
+ hide-scroll-bar
40
53
  ref={bbMsgHistoryRef}
41
54
  style={{ "height": "100%" }}
42
55
  >