James McCool commited on
Commit
61a27a2
·
1 Parent(s): e87901e

Enhance styling in app.py for improved readability

Browse files

Updated CSS styles to adjust font size and background color for better visual presentation. This change aims to enhance user experience by making the interface more accessible and visually appealing.

Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -59,9 +59,17 @@ st.markdown("""
59
  div[data-baseweb="select"] > div {
60
  background-color: #DAA520;
61
  color: white;
 
 
 
 
62
  }
 
 
63
  </style>""", unsafe_allow_html=True)
64
 
 
 
65
  @st.cache_resource(ttl = 61)
66
  def init_baselines():
67
 
@@ -1100,7 +1108,7 @@ with tab4:
1100
 
1101
  # Show the lineup table with single-row selection for removal
1102
  event_remove = st.dataframe(
1103
- lineup_display_df.style.set_properties(**{'font-size': '8pt'}).background_gradient(axis=0).background_gradient(cmap='RdYlGn', subset=['Median']).background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%']).format(precision=2),
1104
  on_select="rerun",
1105
  selection_mode=["single-row"],
1106
  key="lineup_remove",
 
59
  div[data-baseweb="select"] > div {
60
  background-color: #DAA520;
61
  color: white;
62
+ )
63
+
64
+ div {
65
+ font-size: 10px;
66
  }
67
+
68
+
69
  </style>""", unsafe_allow_html=True)
70
 
71
+
72
+
73
  @st.cache_resource(ttl = 61)
74
  def init_baselines():
75
 
 
1108
 
1109
  # Show the lineup table with single-row selection for removal
1110
  event_remove = st.dataframe(
1111
+ lineup_display_df.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn', subset=['Median']).background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%']).format(precision=2),
1112
  on_select="rerun",
1113
  selection_mode=["single-row"],
1114
  key="lineup_remove",