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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -3
app.py CHANGED
@@ -1694,15 +1694,43 @@ 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
- .stApp {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1706
  margin-top: 0 !important;
1707
  }
1708
  </style>
 
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>