Spaces:
Running
Running
James McCool
commited on
Commit
Β·
ec05986
1
Parent(s):
cf1b155
Refactor salary display in app.py to use HTML for improved formatting and alignment. This change enhances visual clarity by presenting salary and median values in a more structured manner, contributing to a better user experience in the lineup summary.
Browse files
app.py
CHANGED
@@ -1035,13 +1035,23 @@ with tab4:
|
|
1035 |
with col3:
|
1036 |
if total_salary <= 50000:
|
1037 |
st.markdown(
|
1038 |
-
f"
|
1039 |
-
|
|
|
|
|
|
|
|
|
|
|
1040 |
)
|
1041 |
else:
|
1042 |
st.markdown(
|
1043 |
-
f"
|
1044 |
-
|
|
|
|
|
|
|
|
|
|
|
1045 |
)
|
1046 |
|
1047 |
# Optionally, add a button to clear the lineup
|
|
|
1035 |
with col3:
|
1036 |
if total_salary <= 50000:
|
1037 |
st.markdown(
|
1038 |
+
f"""
|
1039 |
+
<div style='text-align: right'>
|
1040 |
+
<b>π° Salary:</b> ${round(total_salary, 0)}
|
1041 |
+
<b>π₯ Median:</b> {round(total_median, 2)}
|
1042 |
+
</div>
|
1043 |
+
""",
|
1044 |
+
unsafe_allow_html=True
|
1045 |
)
|
1046 |
else:
|
1047 |
st.markdown(
|
1048 |
+
f"""
|
1049 |
+
<div style='text-align: right'>
|
1050 |
+
<b>β Salary:</b> ${round(total_salary, 0)}
|
1051 |
+
<b>π₯ Median:</b> {round(total_median, 2)}
|
1052 |
+
</div>
|
1053 |
+
""",
|
1054 |
+
unsafe_allow_html=True
|
1055 |
)
|
1056 |
|
1057 |
# Optionally, add a button to clear the lineup
|