code-slicer commited on
Commit
1df4453
Β·
verified Β·
1 Parent(s): 65dbf9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -6
app.py CHANGED
@@ -398,15 +398,24 @@ def make_key(row) -> tuple[str, str]:
398
  # ───────────────────────────────────── streamlit μ˜μ—­ μ„ μ–Έ
399
  st.set_page_config(page_title="여행은 λͺ¨λ‘νˆ¬μ–΄ : λͺ¨μ•„(MoAi)", layout="centered")
400
 
401
- st.markdown(f"""
402
  <style>
403
- /* 1) μ‚¬μ΄λ“œλ°”λ₯Ό λ·°ν¬νŠΈμ— κ³ μ • */
404
- aside[data-testid="stSidebar"], [data-testid="stSidebar"] {{
405
  position: fixed !important;
406
- inset: 0 auto 0 0; /* top:0; right:auto; bottom:0; left:0 */
407
  height: 100vh !important;
408
- z-index: 1000;
409
- }}
 
 
 
 
 
 
 
 
 
410
  </style>
411
  """, unsafe_allow_html=True)
412
 
 
398
  # ───────────────────────────────────── streamlit μ˜μ—­ μ„ μ–Έ
399
  st.set_page_config(page_title="여행은 λͺ¨λ‘νˆ¬μ–΄ : λͺ¨μ•„(MoAi)", layout="centered")
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)
421