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 7e444f4 commit 6d9e348
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions src/components/NodeDetails/LogTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,16 @@ const LogTerminal = ({ text }: LogTerminalProps) => {
);

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

const logViewerStyle = {
flexGrow: 1,
overflow: "auto",
};

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

.pf-v5-c-log-viewer__main,
.pf-v5-c-log-viewer__list {
flex-grow: 1 !important;
overflow: auto;
height:100% !important;
width: 100% !important;
}

.pf-v5-c-log-viewer__scroll-container {
Expand Down

0 comments on commit 6d9e348

Please sign in to comment.