Spaces:
Running
on
T4
Running
on
T4
sidebar fixed
Browse files
app.py
CHANGED
@@ -30,10 +30,26 @@ st.markdown("""
|
|
30 |
height: 100vh;
|
31 |
overflow: hidden;
|
32 |
color: white;
|
33 |
-
}
|
34 |
font-family: 'Amazon Ember', sans-serif;
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
.block-container {
|
38 |
padding-top: 2rem;
|
39 |
}
|
|
|
30 |
height: 100vh;
|
31 |
overflow: hidden;
|
32 |
color: white;
|
33 |
+
}
|
34 |
font-family: 'Amazon Ember', sans-serif;
|
35 |
}
|
36 |
|
37 |
+
[data-testid="stSidebar"] {
|
38 |
+
position: fixed;
|
39 |
+
top: 0;
|
40 |
+
left: 0;
|
41 |
+
height: 100vh;
|
42 |
+
overflow-y: auto;
|
43 |
+
z-index: 100;
|
44 |
+
background-color: #0e1117; /* optional: match your theme */
|
45 |
+
border-right: 1px solid #333; /* optional for separation */
|
46 |
+
}
|
47 |
+
|
48 |
+
/* Adjust the main content so it doesn't go under the fixed sidebar */
|
49 |
+
[data-testid="stAppViewContainer"] > .main {
|
50 |
+
margin-left: 16rem; /* adjust width to match sidebar size */
|
51 |
+
}
|
52 |
+
|
53 |
.block-container {
|
54 |
padding-top: 2rem;
|
55 |
}
|