Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
| 409 |
-
min-width: 250px !important;
|
| 410 |
-
max-width: 250px !important;
|
| 411 |
-
overflow-y: auto !important;
|
| 412 |
-
z-index: 100;
|
| 413 |
}
|
| 414 |
|
| 415 |
-
/*
|
| 416 |
-
[data-testid="
|
| 417 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|