-
Notifications
You must be signed in to change notification settings - Fork 27
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
CSS Variables + Better Web Component Styling #189
Conversation
Visit the preview URL for this PR (updated for commit 8ecdcbb): https://make-run-website--pr189-feat-runno-css-varia-7tds4zjl.web.app (expires Wed, 13 Apr 2022 23:03:58 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
I've had a chance to try this out but I've found that |
Did you try setting max height? |
I was also thinking that having a |
Okay I'll keep fiddling with how these work. I was hoping the overflow behaviour would "just work" as a result of the flex rules I'd set. I think for most people the best way to restrict the height of the editor will be to set a height on the |
The problem is even with setting just a height on the
The only way to get the element working (force overflow) for long code snippets is by setting the |
Ok so I've done some more testing and it works fine if I set a I just quickly tested and adding |
Yep I just had a play around and can replicate what you're describing. Looks like |
This PR adds new CSS variables to the
runno-run
web component:--runno-editor-height
,--runno-terminal-height
,--runno-editor-max-height
,--runno-terminal-min-height
.The default look and layout behaviour of the web component has also been improved so that it works nicely without any styling.