diff --git a/src/components/NodeDetails/LogTerminal.tsx b/src/components/NodeDetails/LogTerminal.tsx index 0d8bda352..d9892be2e 100644 --- a/src/components/NodeDetails/LogTerminal.tsx +++ b/src/components/NodeDetails/LogTerminal.tsx @@ -1,33 +1,44 @@ -import { LogViewer } from "@patternfly/react-log-viewer"; -import { useAppSelector } from "../../store/hooks"; +import { LogViewer, LogViewerSearch } from "@patternfly/react-log-viewer"; +import { Toolbar, ToolbarContent, ToolbarItem } from "@patternfly/react-core"; type LogTerminalProps = { text: string; }; const LogTerminal = ({ text }: LogTerminalProps) => { - const isTerminalMaximized = useAppSelector( - (state) => state.drawers.node.maximized, - ); - - const containerStyle = { - height: isTerminalMaximized ? "100vh" : "100%", + // container style + const containerStyle: React.CSSProperties = { + // If "maximized", fill entire viewport + height: "100vh", width: "100%", display: "flex", - flexDirection: "column" as const, - flexGrow: 1, - }; - - const logViewerStyle = { + flexDirection: "column", flexGrow: 1, - overflow: "auto", - height: "100%", - width: "100%", }; return (