Skip to content

Commit

Permalink
minor viz fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manishshettym committed Feb 21, 2024
1 parent c653344 commit c191459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codescholar/apps/streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit c191459

Please sign in to comment.