Browse Source

refac: artifacts panel behaviour

Timothy J. Baek 6 tháng trước cách đây
mục cha
commit
822024f44e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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;
 	};