Skip to content

Commit

Permalink
feat: Update terminal resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon committed Jan 16, 2025
1 parent 6d9e348 commit 6306b24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/components/NodeDetails/LogTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,23 @@ const LogTerminal = ({ text }: LogTerminalProps) => {
);

const containerStyle = {
height: "100%",
height: isTerminalMaximized ? "100vh" : "100%",
width: "100%",
display: "flex",
flexDirection: "column" as const,
flexGrow: 1,
};

const logViewerStyle = {
flexGrow: 1,
overflow: "auto",
height: "100%",
width: "100%",
};

return (
<div style={containerStyle}>
<LogViewer hasLineNumbers={false} data={text} />
<LogViewer style={logViewerStyle} hasLineNumbers={false} data={text} />
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/NodeDetails/NodeDetails.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@

.pf-v5-c-log-viewer__main,
.pf-v5-c-log-viewer__list {
height:100% !important;
height: 100% !important;
width: 100% !important;
}

Expand Down

0 comments on commit 6306b24

Please sign in to comment.