CarlyneB commited on
Commit
1cbb384
Β·
1 Parent(s): 4885a3b

[FIX] Try fixing the position of the sidebar

Browse files
Files changed (1) hide show
  1. 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
- /* Keep the sidebar fixed on screen while the main content scrolls */
62
- section[data-testid="stSidebar"] > div:first-child {
63
  position: fixed;
64
- overflow-y: auto;
 
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 "### …") ────────────── */