kargaranamir commited on
Commit
df34d37
1 Parent(s): 075c681

add line between rows.

Browse files
Files changed (1) hide show
  1. utils.py +2 -1
utils.py CHANGED
@@ -19,7 +19,7 @@ def df_to_html(df):
19
 
20
  # Define table styling
21
  styles = [
22
- {'selector': 'tr', 'props': [('border', 'none')]}, # Hide row borders
23
  {'selector': 'td, th', 'props': [('border', 'none'), ("text-align", "center"), ('font-size', 'smaller')]}, # Remove cell borders, reduce font size
24
  {'selector': 'tr:hover', 'props': [('background-color', '#878787')]},
25
  {'selector': 'a:hover', 'props': [('color', 'darkblue')]},
@@ -39,6 +39,7 @@ def df_to_html(df):
39
 
40
 
41
 
 
42
  @st.cache_data
43
  def render_svg(svg):
44
  """Renders the given svg string."""
 
19
 
20
  # Define table styling
21
  styles = [
22
+ {'selector': 'tr', 'props': [('border-bottom', '1px solid #ccc')]}, # Add bottom border to rows
23
  {'selector': 'td, th', 'props': [('border', 'none'), ("text-align", "center"), ('font-size', 'smaller')]}, # Remove cell borders, reduce font size
24
  {'selector': 'tr:hover', 'props': [('background-color', '#878787')]},
25
  {'selector': 'a:hover', 'props': [('color', 'darkblue')]},
 
39
 
40
 
41
 
42
+
43
  @st.cache_data
44
  def render_svg(svg):
45
  """Renders the given svg string."""