GSMEthesis commited on
Commit
d9e1e79
·
verified ·
1 Parent(s): 5c904a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -106,7 +106,7 @@ html, body, .stApp {
106
  [data-testid="stAppViewContainer"] {
107
  background-color: var(--background) !important;
108
  color: var(--text) !important;
109
- padding: 10px !important;
110
  }
111
 
112
  /* تنظیمات اصلی */
@@ -534,24 +534,6 @@ h3 {
534
  </style>
535
  """, unsafe_allow_html=True)
536
 
537
- st.components.v1.html("""
538
- <script>
539
- document.addEventListener('DOMContentLoaded', function() {
540
- const container = document.querySelector('[data-testid="stAppViewContainer"]');
541
- if (container && window.innerWidth >= 768) {
542
- // فقط فاصله چپ و راست را تنظیم می‌کند
543
- container.style.paddingLeft = '5px';
544
- container.style.paddingRight = '5px';
545
-
546
- // برای عناصر داخلی
547
- container.querySelectorAll('.stMarkdown, .stTextInput, .stButton').forEach(el => {
548
- el.style.paddingLeft = '0';
549
- el.style.paddingRight = '0';
550
- });
551
- }
552
- });
553
- </script>
554
- """)
555
 
556
  # ========== توابع اصلی ==========
557
  def create_ride_map():
 
106
  [data-testid="stAppViewContainer"] {
107
  background-color: var(--background) !important;
108
  color: var(--text) !important;
109
+ padding: 10px 5px !important;
110
  }
111
 
112
  /* تنظیمات اصلی */
 
534
  </style>
535
  """, unsafe_allow_html=True)
536
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
537
 
538
  # ========== توابع اصلی ==========
539
  def create_ride_map():