Skip to content
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

Feature: max-height for use with virtual in lieu of height #269

Open
jclark-dot-org opened this issue Feb 25, 2024 · 0 comments
Open

Feature: max-height for use with virtual in lieu of height #269

jclark-dot-org opened this issue Feb 25, 2024 · 0 comments

Comments

@jclark-dot-org
Copy link

using virtual and height: 400 options is great when I have a large JSON string to display, but when the JSON is smaller, I end up with a blank area below my formatted JSON, since I don't need a scroll bar to display the full rendered JSON. Could we add a max-height prop that uses the CSS property max-height instead of height in the rendered component? This would allow it to take up less room, when small, but still be bound when large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant