From c1914592d9903f7ebe99cd4bba08c7a58f38e049 Mon Sep 17 00:00:00 2001 From: manishshettym Date: Wed, 21 Feb 2024 19:32:36 +0000 Subject: [PATCH] minor viz fix --- codescholar/apps/streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codescholar/apps/streamlit_app.py b/codescholar/apps/streamlit_app.py index f7133c6..e4d15f5 100644 --- a/codescholar/apps/streamlit_app.py +++ b/codescholar/apps/streamlit_app.py @@ -184,7 +184,7 @@ def search_selected(): with tab: st.write("🎓: Found this idiom in {} programs!".format(idiom["freq"])) highlighted_idiom_html = highlight_code_with_html(idiom["idiom"]) - maxh = max(100, min(20 * idiom["idiom"].count("\n"), 500)) + maxh = max(100, min(30 * idiom["idiom"].count("\n"), 500)) components.html(highlighted_idiom_html, height=maxh, scrolling=True) colbut1, colbut2 = st.columns([0.25, 0.8])