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

Update app.py

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