-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frontend: LogViewer: Fix log not expanding on full screen #2650
Conversation
60d9f1b
to
0c709a4
Compare
note: I have tried setting different widths to take up the full size of the container, this would only resize on save after the full screen mode is already expanded and would not work if starting from the beginning (goes to details, opens log viewer, click full screen, would still be half size) the xterm |
would calling |
I have tried the following and it does not seem to not fix the full screen issue, the console log prints but the fit method does not resize anything, I tried to call it inside the onFullScreenToggled entirely and I also tried creating a stand alone function and passing that in and had the same result, all three ways still print but the calling of the fitAddonRef.current?.fit() does not work, I saw this trend of style changes (settings sx width and minWidth and also different flex displays ) and fitAddonRef.current?.fit() not rendering unless the screen is already maximized and I'm opening the changes live and thought maybe it just needed to rerender from the useEffect
-- also tried inserting some new instances to maybe try that too but nothing
|
using the timer fix from this part uses in the project @sniok
|
Signed-off-by: Vincent T <[email protected]>
0c709a4
to
14bb07b
Compare
need i18n missing words from #2660 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The i18n failure should be fixed by rebasing, otherwise LGTM
fixes issue #2640
Description
This PR fixes an issue with the
LogViewer
component where log lines did not expand to the full width when in full-screen mode. This issue impacts user experience, especially for users relying on the full-screen view to read long log lines.Key Changes
LogViewer
component's logic allowing render handlers to run resizes to ensure log lines expand to utilize the full width in full-screen mode.Steps to Test
Open the
LogViewer
component in the pods details view.Switch to full-screen mode.
Verify:
Test on various screen sizes to ensure responsiveness and compatibility.