fix: remove the constant deps for watch logs

This commit is contained in:
jialin
2025-01-22 17:38:24 +08:00
parent 61fb7b0d86
commit a54c160d83
3 changed files with 16 additions and 2 deletions
@@ -60,10 +60,24 @@
&.dark {
background-color: #282c34;
&:hover {
&::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-handle-light-bg);
border-radius: 4px;
}
}
}
&.light {
background-color: rgb(250, 250, 250);
&:hover {
&::-webkit-scrollbar-thumb {
background-color: var(--color-scrollbar-thumb);
border-radius: 4px;
}
}
}
}
}
@@ -231,7 +231,7 @@ const LogsViewer: React.FC<LogsViewerProps> = forwardRef((props, ref) => {
return () => {
chunkRequedtRef.current?.current?.abort?.();
};
}, [url, props.params]);
}, [url]);
useEffect(() => {
debouncedScroll();