GSMEthesis commited on
Commit
a22f7b9
·
verified ·
1 Parent(s): 35a30ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -36
app.py CHANGED
@@ -1694,44 +1694,10 @@ def main():
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
  [data-testid="stAppViewContainer"] {
1706
- margin-top: -20px !important; /* کاهش از -40px برای تست */
1707
  padding-top: 0 !important;
1708
- width: 100% !important; /* اطمینان از پر کردن عرض */
1709
- min-height: 100% !important; /* پر کردن ارتفاع */
1710
- }
1711
- /* تنظیم فریم موبایل با پدینگ کمتر */
1712
- @media (min-width: 768px) {
1713
- [data-testid="stAppViewContainer"] {
1714
- width: 475px !important;
1715
- height: 667px !important;
1716
- margin: 0 auto !important;
1717
- border: 8px solid #000 !important;
1718
- border-radius: 40px !important;
1719
- box-shadow: 0 0 0 4px #666, 0 0 20px rgba(0,0,0,0.3) !important;
1720
- padding: 5px !important;
1721
- background-color: var(--background) !important;
1722
- color: var(--text) !important;
1723
- overflow-y: auto !important;
1724
- overflow-x: hidden !important;
1725
- }
1726
- }
1727
- /* کاهش پدینگ عمومی */
1728
- [data-testid="stAppViewContainer"] * {
1729
- padding-right: 2px !important;
1730
- padding-left: 4px !important;
1731
- }
1732
- /* اطمینان از نمایش محتوا */
1733
- .stApp > div {
1734
- margin-top: 0 !important;
1735
  }
1736
  </style>
1737
  """, unsafe_allow_html=True)
 
1694
  [data-testid="stToolbar"] {
1695
  display: none !important;
1696
  }
1697
+ /* جابجایی محتوای اصلی به بالا */
 
 
 
 
 
 
 
1698
  [data-testid="stAppViewContainer"] {
1699
+ margin-top: -40px !important; /* تنظیم بر اساس ارتفاع تقریبی هدر */
1700
  padding-top: 0 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1701
  }
1702
  </style>
1703
  """, unsafe_allow_html=True)