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 { &.dark {
background-color: #282c34; background-color: #282c34;
&:hover {
&::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-handle-light-bg);
border-radius: 4px;
}
}
} }
&.light { &.light {
background-color: rgb(250, 250, 250); 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 () => { return () => {
chunkRequedtRef.current?.current?.abort?.(); chunkRequedtRef.current?.current?.abort?.();
}; };
}, [url, props.params]); }, [url]);
useEffect(() => { useEffect(() => {
debouncedScroll(); debouncedScroll();
+1 -1
View File
@@ -16,7 +16,7 @@ html {
--color-scrollbar-thumb: rgba(193, 193, 193, 80%); --color-scrollbar-thumb: rgba(193, 193, 193, 80%);
--scrollbar-size: 6px; --scrollbar-size: 6px;
--scrollbar-handle-bg: rgba(0, 0, 0, 44%); --scrollbar-handle-bg: rgba(0, 0, 0, 44%);
--scrollbar-handle-light-bg: rgba(255, 255, 255, 44%); --scrollbar-handle-light-bg: rgba(255, 255, 255, 25%);
--scrollbar-handle-hover-bg: rgba(0, 0, 0, 55%); --scrollbar-handle-hover-bg: rgba(0, 0, 0, 55%);
--color-editor-dark: #282c34; --color-editor-dark: #282c34;
--color-editor-light: #fafafa; --color-editor-light: #fafafa;