mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-16 04:03:50 +03:00
Server Console initial terminal size calculations incorrect #321
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Linguardium on GitHub (Apr 26, 2025).
Originally assigned to: @notAreYouScared on GitHub.
329a29f7da/resources/views/filament/components/server-console.blade.php (L84-L88)Current code sets the fit during loading which causes the fit addon to use incorrect sizes for resizing the terminal. This causes the console lines to overflow the terminal pane (and the terminal scrollbar...) breaking scrollbar dragging and causing text to not be visible.
Adding a load event handler here to resize once the page has loaded should fix the issue.
@lancepioch commented on GitHub (Apr 27, 2025):
Thanks, we'll look into this shortly!
@Linguardium commented on GitHub (Apr 27, 2025):
Looks like this only fixes the issue on page load if the server console is the first page/main page being loaded (such as a refresh). if another page loads (such as the main sever selection page), it will still load with the wrong dimensions. another event/trigger may be the better to resolve this when the console page is fully loaded, instead.
@ptlthg commented on GitHub (Jul 14, 2025):
I'd appreciate a fix for this, it's a tiny thing but after using the panel for the first time this is the only bug I've noticed so far.