浏览代码

refac: artifacts panel behaviour

Timothy J. Baek 6 月之前
父节点
当前提交
822024f44e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/lib/components/chat/Artifacts.svelte

+ 5 - 0
src/lib/components/chat/Artifacts.svelte

@@ -120,6 +120,11 @@
 			}
 		});
 
+		if (contents.length === 0) {
+			showControls.set(false);
+			showArtifacts.set(false);
+		}
+
 		selectedContentIdx = contents ? contents.length - 1 : 0;
 	};