Jan Mühlnikel commited on
Commit
56fd0b1
1 Parent(s): a1f1bf2

change size of st tabs

Browse files
Files changed (2) hide show
  1. app.py +9 -0
  2. modules/navbar.py +2 -1
app.py CHANGED
@@ -9,6 +9,15 @@ st.set_page_config(
9
  from modules.navbar import show_navbar
10
  import similarity_page
11
 
 
 
 
 
 
 
 
 
 
12
  # NAVBAR
13
  navbar = show_navbar()
14
  #similarity_page.show_multi_matching_page()
 
9
  from modules.navbar import show_navbar
10
  import similarity_page
11
 
12
+ # reduce space to the top
13
+ st.markdown("""
14
+ <style>
15
+ .reportview-container .main .block-container{
16
+ padding-top: 2rem; /* Adjust the value as needed */
17
+ }
18
+ </style>
19
+ """, unsafe_allow_html=True)
20
+
21
  # NAVBAR
22
  navbar = show_navbar()
23
  #similarity_page.show_multi_matching_page()
modules/navbar.py CHANGED
@@ -18,6 +18,8 @@ def show_navbar():
18
  #st.markdown("<h1 style='color: red;'>THIS APP IS WORK IN PROGRESS ...</h1>", unsafe_allow_html=True)
19
 
20
  #st.title("Development Bank Synergy Mapper")
 
 
21
  css = '''
22
  <style>
23
  .stTabs [data-baseweb="tab-list"] button [data-testid="stMarkdownContainer"] p {
@@ -25,7 +27,6 @@ def show_navbar():
25
  }
26
  </style>
27
  '''
28
-
29
  st.markdown(css, unsafe_allow_html=True)
30
  tab1, tab2 = st.tabs([
31
  "🔍 Multi-Project Matching",
 
18
  #st.markdown("<h1 style='color: red;'>THIS APP IS WORK IN PROGRESS ...</h1>", unsafe_allow_html=True)
19
 
20
  #st.title("Development Bank Synergy Mapper")
21
+
22
+ # enlarge tab fontsizes
23
  css = '''
24
  <style>
25
  .stTabs [data-baseweb="tab-list"] button [data-testid="stMarkdownContainer"] p {
 
27
  }
28
  </style>
29
  '''
 
30
  st.markdown(css, unsafe_allow_html=True)
31
  tab1, tab2 = st.tabs([
32
  "🔍 Multi-Project Matching",