Spaces:
Runtime error
Runtime error
Claude commited on
Fix: 관리자 바로가기를 사이드바에서 제거, 홈 화면 제목 오른쪽에 버튼으로 배치
Browse fileshttps://claude.ai/code/session_01VubVHht1kvabfdfFR1weKs
- components/sidebar.py +0 -9
- views/home.py +3 -4
components/sidebar.py
CHANGED
|
@@ -161,15 +161,6 @@ def render_sidebar(supabase) -> dict:
|
|
| 161 |
st.rerun()
|
| 162 |
st.divider()
|
| 163 |
|
| 164 |
-
if teacher_auth and admin_auth:
|
| 165 |
-
st.caption("관리자 바로가기")
|
| 166 |
-
if st.button("📝 ID 요청 수락", use_container_width=True):
|
| 167 |
-
st.session_state['page'] = "admin_approval"
|
| 168 |
-
st.rerun()
|
| 169 |
-
if st.button("🚪 말자취(Talk-Trace) AI 대기실", use_container_width=True):
|
| 170 |
-
st.session_state['page'] = "lobby"
|
| 171 |
-
st.rerun()
|
| 172 |
-
st.divider()
|
| 173 |
|
| 174 |
if teacher_auth:
|
| 175 |
existing_rooms = all_rooms if admin_auth else (
|
|
|
|
| 161 |
st.rerun()
|
| 162 |
st.divider()
|
| 163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
|
| 165 |
if teacher_auth:
|
| 166 |
existing_rooms = all_rooms if admin_auth else (
|
views/home.py
CHANGED
|
@@ -6,9 +6,9 @@ def render_home_page():
|
|
| 6 |
teacher_auth = st.session_state.get('teacher_auth', False)
|
| 7 |
|
| 8 |
if admin_auth and teacher_auth:
|
| 9 |
-
st.
|
| 10 |
-
|
| 11 |
-
|
| 12 |
with col_admin1:
|
| 13 |
if st.button("📝 ID 요청 수락", use_container_width=True):
|
| 14 |
st.session_state['page'] = "admin_approval"
|
|
@@ -17,7 +17,6 @@ def render_home_page():
|
|
| 17 |
if st.button("🚪 말자취 AI 대기실", use_container_width=True):
|
| 18 |
st.session_state['page'] = "lobby"
|
| 19 |
st.rerun()
|
| 20 |
-
st.divider()
|
| 21 |
else:
|
| 22 |
st.title("🏠 말자취(Talk-Trace) AI 홈")
|
| 23 |
|
|
|
|
| 6 |
teacher_auth = st.session_state.get('teacher_auth', False)
|
| 7 |
|
| 8 |
if admin_auth and teacher_auth:
|
| 9 |
+
col_title, col_admin1, col_admin2 = st.columns([4, 1, 1])
|
| 10 |
+
with col_title:
|
| 11 |
+
st.title("🏠 말자취(Talk-Trace) AI 홈")
|
| 12 |
with col_admin1:
|
| 13 |
if st.button("📝 ID 요청 수락", use_container_width=True):
|
| 14 |
st.session_state['page'] = "admin_approval"
|
|
|
|
| 17 |
if st.button("🚪 말자취 AI 대기실", use_container_width=True):
|
| 18 |
st.session_state['page'] = "lobby"
|
| 19 |
st.rerun()
|
|
|
|
| 20 |
else:
|
| 21 |
st.title("🏠 말자취(Talk-Trace) AI 홈")
|
| 22 |
|