Skip to content

Commit

Permalink
Merge pull request #2650 from headlamp-k8s/fix-full-screen-log-render
Browse files Browse the repository at this point in the history
frontend: LogViewer: Fix log not expanding on full screen
  • Loading branch information
joaquimrocha authored Dec 11, 2024
2 parents d3a0f25 + 14bb07b commit 2758f7b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion frontend/src/components/common/LogViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,17 @@ export function LogViewer(props: LogViewerProps) {
}

return (
<Dialog title={title} withFullScreen onClose={onClose} {...other}>
<Dialog
title={title}
onFullScreenToggled={() => {
setTimeout(() => {
fitAddonRef.current!.fit();
}, 1);
}}
withFullScreen
onClose={onClose}
{...other}
>
<DialogContent
sx={theme => ({
height: '80%',
Expand Down

0 comments on commit 2758f7b

Please sign in to comment.