Skip to content

CodeBlock expanding to fit the height of parent container #3833

Answered by nkrantz
mmacoveiciuc asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @mmacoveiciuc, you're right, the only way to fix the height of the CodeBlock beyond the height of the actual code would be to append blank lines of code to the bottom of your code string. There's no existing minLines prop - only maxLines. Thanks!

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nkrantz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants