GSMEthesis commited on
Commit
c5261d0
·
verified ·
1 Parent(s): 1879084

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -1690,18 +1690,21 @@ def main():
1690
  st.session_state.is_desktop = "mobile" not in user_agent.lower()
1691
  st.markdown("""
1692
  <style>
1693
- /* مخفی کردن نوار ابزار Streamlit (شامل دکمه سه‌نقطه) */
1694
  [data-testid="stToolbar"] {
1695
  display: none !important;
1696
  }
1697
- /* اطمینان از حذف کامل در همه حالت‌ها */
1698
  header {
1699
- display: none !important;
1700
- }
1701
- /* مخفی کردن هر چیزی که ممکنه بالای صفحه ظاهر بشه */
1702
- .stApp > header {
1703
  visibility: hidden !important;
1704
  }
 
 
 
 
1705
  </style>
1706
  """, unsafe_allow_html=True)
1707
 
 
1690
  st.session_state.is_desktop = "mobile" not in user_agent.lower()
1691
  st.markdown("""
1692
  <style>
1693
+ /* مخفی کردن نوار ابزار */
1694
  [data-testid="stToolbar"] {
1695
  display: none !important;
1696
  }
1697
+ /* تنظیم هدر برای حذف فضای خالی */
1698
  header {
1699
+ height: 0 !important;
1700
+ padding: 0 !important;
1701
+ margin: 0 !important;
 
1702
  visibility: hidden !important;
1703
  }
1704
+ /* اطمینان از اینکه محتوای اصلی به بالا بیاد */
1705
+ .stApp {
1706
+ margin-top: 0 !important;
1707
+ }
1708
  </style>
1709
  """, unsafe_allow_html=True)
1710