-
-
Notifications
You must be signed in to change notification settings - Fork 171
fix: make repl console scrollable #1477
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@@ -121,7 +121,8 @@ | |||
} | |||
|
|||
.panel-body { | |||
overflow: auto; | |||
overflow: scroll; | |||
max-height: 100%; |
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.
This fixes it but makes it bigger than its current size because it fills the height of the container and doesn't take into account the height of the console controls we have at the top. This causes some of the console logs to be hidden. I wonder if we can easily fix this by wrapping the panel body in another container.
Another issue(?) I've found is that the console doesn't auto scroll to new logs if it's exceeded the height of the container. But maybe that's an issue for another day |
Co-authored-by: Tee Ming <chewteeming01@gmail.com>
For some reason the console in the REPL has had
overflow: hidden
, meaning that if there are too many logs to fit in the current view, you'd have to resize the console instead of just scrolling. This should fix that.Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.