georad commited on
Commit
f33d0c9
·
verified ·
1 Parent(s): 42288cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -6,7 +6,7 @@ def add_sticky_header_css():
6
  <style>
7
  /* Make Streamlit's toolbar sticky */
8
  [data-testid="stToolbar"] {
9
- position: fixed;
10
  top: 0;
11
  right: 0;
12
  z-index: 1000;
@@ -20,11 +20,22 @@ def add_sticky_header_css():
20
  bottom: 0;
21
  right: 0;
22
  z-index: 1000;
23
- background-color: #90EE90;
24
  padding: 5px;
25
  border-top: 1px solid #f0f0f0;
26
  width: 100%;
27
  }
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  /* Add padding to main content to prevent overlap with fixed header */
30
  .main .block-container {
 
6
  <style>
7
  /* Make Streamlit's toolbar sticky */
8
  [data-testid="stToolbar"] {
9
+ position: sticky;
10
  top: 0;
11
  right: 0;
12
  z-index: 1000;
 
20
  bottom: 0;
21
  right: 0;
22
  z-index: 1000;
23
+ background-color: yellow; /* #90EE90 */
24
  padding: 5px;
25
  border-top: 1px solid #f0f0f0;
26
  width: 100%;
27
  }
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
 
40
  /* Add padding to main content to prevent overlap with fixed header */
41
  .main .block-container {