kaveh commited on
Commit
7495ebc
·
1 Parent(s): b278d0d

fixed scrolling left panel

Browse files
Files changed (1) hide show
  1. static/s2f_styles.css +11 -0
static/s2f_styles.css CHANGED
@@ -98,7 +98,11 @@ section[data-testid="stSidebar"] {
98
 
99
  /* === Sidebar === */
100
  section[data-testid="stSidebar"] {
 
 
 
101
  width: 360px !important;
 
102
  max-height: 100vh !important;
103
  overflow-x: hidden !important;
104
  overflow-y: auto !important;
@@ -116,6 +120,8 @@ section[data-testid="stSidebar"] {
116
  }
117
  @media (max-width: 768px) {
118
  section[data-testid="stSidebar"] { width: 100% !important; max-width: 100% !important; }
 
 
119
  }
120
  section[data-testid="stSidebar"] [data-testid="stWidgetLabel"],
121
  section[data-testid="stSidebar"] [data-testid="stWidgetLabel"] p {
@@ -522,6 +528,11 @@ hr { border-color: #cbd5e1 !important; opacity: 0.7; }
522
  text-align: center;
523
  line-height: 1.4;
524
  }
 
 
 
 
 
525
  .block-container {
526
  padding-bottom: 2.5rem !important;
527
  max-width: 1050px !important;
 
98
 
99
  /* === Sidebar === */
100
  section[data-testid="stSidebar"] {
101
+ position: fixed !important;
102
+ top: 0 !important;
103
+ left: 0 !important;
104
  width: 360px !important;
105
+ height: 100vh !important;
106
  max-height: 100vh !important;
107
  overflow-x: hidden !important;
108
  overflow-y: auto !important;
 
120
  }
121
  @media (max-width: 768px) {
122
  section[data-testid="stSidebar"] { width: 100% !important; max-width: 100% !important; }
123
+ [data-testid="stAppViewContainer"],
124
+ .appview-container .main { margin-left: 0 !important; }
125
  }
126
  section[data-testid="stSidebar"] [data-testid="stWidgetLabel"],
127
  section[data-testid="stSidebar"] [data-testid="stWidgetLabel"] p {
 
528
  text-align: center;
529
  line-height: 1.4;
530
  }
531
+ /* Main content: offset for fixed sidebar so it doesn't overlap */
532
+ [data-testid="stAppViewContainer"],
533
+ .appview-container .main {
534
+ margin-left: 360px !important;
535
+ }
536
  .block-container {
537
  padding-bottom: 2.5rem !important;
538
  max-width: 1050px !important;