We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 410ebc0 + 4c9f43f commit 3b6c7afCopy full SHA for 3b6c7af
web-server/src/content/Service/SystemLogs.tsx
@@ -17,12 +17,12 @@ export const SystemLogs = ({ serviceName }: { serviceName: ServiceNames }) => {
17
18
useEffect(() => {
19
if (containerRef.current) {
20
- containerRef.current.scrollTop = containerRef.current.scrollHeight;
+ containerRef.current.scrollIntoView({ behavior: 'smooth' });
21
}
22
}, [logs]);
23
24
return (
25
- <FlexBox ref={containerRef} col>
+ <FlexBox col>
26
{loading ? (
27
<FlexBox alignCenter gap2>
28
<CircularProgress size="20px" />
@@ -41,6 +41,7 @@ export const SystemLogs = ({ serviceName }: { serviceName: ServiceNames }) => {
41
</Line>
42
))
43
)}
44
+ <FlexBox ref={containerRef} />
45
</FlexBox>
46
);
47
};
0 commit comments