code-slicer commited on
Commit
8fcd2fc
·
verified ·
1 Parent(s): 1df4453

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
app.py CHANGED
@@ -400,21 +400,25 @@ st.set_page_config(page_title="여행은 모두투어 : 모아(MoAi)", layout="c
400
 
401
  st.markdown("""
402
  <style>
403
- /* 사이드바 고정 */
404
- [data-testid="stSidebar"]{
405
  position: fixed !important;
406
  top: 0; left: 0;
407
  height: 100vh !important;
408
- width: 250px !important;
409
- min-width: 250px !important;
410
- max-width: 250px !important;
411
- overflow-y: auto !important;
412
- z-index: 100;
413
  }
414
 
415
- /* 본문은 사이드바만큼 오른쪽으로 밀기 (340 + 24 여백) */
416
- [data-testid="stAppViewContainer"] > .main .block-container{
417
- padding-left: 274px !important;
 
 
 
 
 
 
 
 
418
  }
419
  </style>
420
  """, unsafe_allow_html=True)
 
400
 
401
  st.markdown("""
402
  <style>
403
+ /* 1) 왼쪽 사이드바 전체를 화면에 고정 */
404
+ aside[data-testid="stSidebar"], [data-testid="stSidebar"]{
405
  position: fixed !important;
406
  top: 0; left: 0;
407
  height: 100vh !important;
408
+ z-index: 1000;
 
 
 
 
409
  }
410
 
411
+ /* 2) 사이드바 안의 콘텐츠를 '붙박이'로: 내부 스크롤 */
412
+ aside[data-testid="stSidebar"] > div{
413
+ height: 100%;
414
+ overflow: hidden !important; /* ← 내용이 고정됨(스크롤 안 됨) */
415
+ }
416
+
417
+ /* 3) 본문은 오른쪽으로 밀어 겹침 방지 (340 + 24 여백) */
418
+ [data-testid="stAppViewContainer"] > .main .block-container,
419
+ section.main > div.block-container,
420
+ div[data-testid="block-container"]{
421
+ margin-left: 364px !important;
422
  }
423
  </style>
424
  """, unsafe_allow_html=True)