Spaces:
Running
Running
James McCool
commited on
Commit
·
8803344
1
Parent(s):
ec05986
Refactor salary display in app.py to utilize HTML for improved formatting and alignment, enhancing visual clarity and user experience in the lineup summary.
Browse files
app.py
CHANGED
@@ -1030,7 +1030,12 @@ with tab4:
|
|
1030 |
|
1031 |
col1, col2, col3 = st.columns([2, 1, 3])
|
1032 |
with col1:
|
1033 |
-
st.markdown(f"
|
|
|
|
|
|
|
|
|
|
|
1034 |
|
1035 |
with col3:
|
1036 |
if total_salary <= 50000:
|
|
|
1030 |
|
1031 |
col1, col2, col3 = st.columns([2, 1, 3])
|
1032 |
with col1:
|
1033 |
+
st.markdown(f"""
|
1034 |
+
<div style='text-align: left'>
|
1035 |
+
<b>💰 Per Player:</b> `${round((50000 - total_salary) / (10 - len(filled_lineup)), 0)}`
|
1036 |
+
</div>
|
1037 |
+
""",
|
1038 |
+
unsafe_allow_html=True)
|
1039 |
|
1040 |
with col3:
|
1041 |
if total_salary <= 50000:
|