chore: removing the tail functionality for now

Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-02-06 21:34:47 +01:00
parent cb25785e25
commit 7dcd44286d
3 changed files with 0 additions and 12 deletions
-1
View File
@@ -693,7 +693,6 @@ export interface LogViewerProps {
classes?: {
root?: string;
};
tail?: boolean;
text: string;
}
@@ -39,10 +39,6 @@ export interface LogViewerProps {
classes?: {
root?: string;
};
/**
* Whether the LogViewer should automatically scroll to the bottom of the log.
*/
tail?: boolean;
}
/**
@@ -32,7 +32,6 @@ import { useLogViewerSelection } from './useLogViewerSelection';
export interface RealLogViewerProps {
text: string;
classes?: { root?: string };
tail?: boolean;
}
export function RealLogViewer(props: RealLogViewerProps) {
@@ -53,12 +52,6 @@ export function RealLogViewer(props: RealLogViewerProps) {
}
}, [search.resultLine]);
useEffect(() => {
if (props.tail && listRef.current) {
listRef.current.scrollToItem(lines.length - 1, 'center');
}
}, [lines.length, props.tail]);
useEffect(() => {
if (location.hash) {
// #line-6 -> 6