Skip to content

Commit

Permalink
frontend: LogViwer: Fix log not expanding on full screen
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent T <[email protected]>
  • Loading branch information
vyncent-t committed Dec 11, 2024
1 parent 9928715 commit 14bb07b
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 14bb07b

Please sign in to comment.