Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -534,7 +534,24 @@ h3 {
|
|
| 534 |
</style>
|
| 535 |
""", unsafe_allow_html=True)
|
| 536 |
|
| 537 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 538 |
|
| 539 |
# ========== توابع اصلی ==========
|
| 540 |
def create_ride_map():
|
|
|
|
| 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():
|