Spaces:
Running
Running
π UI: Fix markdown rendering of 'How it works' HTML blocks
Browse files
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 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 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)
|