Spaces:
Sleeping
Sleeping
[FIX] Try fixing the position of the sidebar
Browse files- assets/styles.css +6 -4
assets/styles.css
CHANGED
|
@@ -53,16 +53,18 @@ input, textarea, select,
|
|
| 53 |
background: var(--off-white) !important;
|
| 54 |
}
|
| 55 |
|
| 56 |
-
/* Default width β no !important so Streamlit's drag-to-resize JS can override it */
|
| 57 |
section[data-testid="stSidebar"] {
|
| 58 |
width: 350px;
|
| 59 |
}
|
| 60 |
|
| 61 |
-
|
| 62 |
-
section[data-testid="stSidebar"] > div:first-child {
|
| 63 |
position: fixed;
|
| 64 |
-
|
|
|
|
| 65 |
width: inherit;
|
|
|
|
|
|
|
|
|
|
| 66 |
}
|
| 67 |
|
| 68 |
/* ββ 4. Markdown headings (st.markdown "### β¦") ββββββββββββββ */
|
|
|
|
| 53 |
background: var(--off-white) !important;
|
| 54 |
}
|
| 55 |
|
|
|
|
| 56 |
section[data-testid="stSidebar"] {
|
| 57 |
width: 350px;
|
| 58 |
}
|
| 59 |
|
| 60 |
+
div[data-testid="stSidebarContent"] {
|
|
|
|
| 61 |
position: fixed;
|
| 62 |
+
top: 0;
|
| 63 |
+
left: 0;
|
| 64 |
width: inherit;
|
| 65 |
+
height: 100vh;
|
| 66 |
+
overflow-y: auto;
|
| 67 |
+
z-index: 100;
|
| 68 |
}
|
| 69 |
|
| 70 |
/* ββ 4. Markdown headings (st.markdown "### β¦") ββββββββββββββ */
|