E5K7 commited on
Commit
661a588
Β·
1 Parent(s): 8a2e574

πŸ› UI: Fix markdown rendering of 'How it works' HTML blocks

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -819,9 +819,7 @@ elif not st.session_state.running and not st.session_state.error:
819
 
820
  # How it works
821
  st.markdown("### πŸ”„ How It Works")
822
- steps_html = """
823
- <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 1rem;">
824
- """
825
  how_steps = [
826
  ("1", "πŸ“‘", "Fetch Issue", "Pulls the full GitHub issue: title, body, comments, labels"),
827
  ("2", "πŸ—ΊοΈ", "Map Codebase", "Identifies top 5-10 suspect files from the repo tree"),
@@ -831,12 +829,11 @@ elif not st.session_state.running and not st.session_state.error:
831
  ]
832
  for num, icon, title, desc in how_steps:
833
  steps_html += f"""
834
- <div style="background: #12141a; border: 1px solid #2a2c36; border-radius: 10px; padding: 1rem; position: relative;">
835
- <div style="position: absolute; top: -10px; left: 12px; background: linear-gradient(135deg, #6c63ff, #a78bfa); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: white;">{num}</div>
836
- <div style="font-size: 1.4rem; margin-bottom: 0.4rem; margin-top: 0.3rem;">{icon}</div>
837
- <div style="font-weight: 700; font-size: 0.9rem; color: #f0f0ff; margin-bottom: 0.3rem;">{title}</div>
838
- <div style="font-size: 0.78rem; color: #6b7280; line-height: 1.5;">{desc}</div>
839
- </div>
840
- """
841
  steps_html += "</div>"
842
  st.markdown(steps_html, unsafe_allow_html=True)
 
819
 
820
  # How it works
821
  st.markdown("### πŸ”„ How It Works")
822
+ steps_html = """<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 1rem;">"""
 
 
823
  how_steps = [
824
  ("1", "πŸ“‘", "Fetch Issue", "Pulls the full GitHub issue: title, body, comments, labels"),
825
  ("2", "πŸ—ΊοΈ", "Map Codebase", "Identifies top 5-10 suspect files from the repo tree"),
 
829
  ]
830
  for num, icon, title, desc in how_steps:
831
  steps_html += f"""
832
+ <div style="background: #12141a; border: 1px solid #2a2c36; border-radius: 10px; padding: 1rem; position: relative;">
833
+ <div style="position: absolute; top: -10px; left: 12px; background: linear-gradient(135deg, #6c63ff, #a78bfa); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: white;">{num}</div>
834
+ <div style="font-size: 1.4rem; margin-bottom: 0.4rem; margin-top: 0.3rem;">{icon}</div>
835
+ <div style="font-weight: 700; font-size: 0.9rem; color: #f0f0ff; margin-bottom: 0.3rem;">{title}</div>
836
+ <div style="font-size: 0.78rem; color: #6b7280; line-height: 1.5;">{desc}</div>
837
+ </div>"""
 
838
  steps_html += "</div>"
839
  st.markdown(steps_html, unsafe_allow_html=True)