GSMEthesis commited on
Commit
f6965a9
·
verified ·
1 Parent(s): ba799cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -46
app.py CHANGED
@@ -552,52 +552,27 @@ h3 {
552
  }
553
 
554
  @media (min-width: 768px) {
555
- [data-testid="stAppViewContainer"] > div,
556
- [data-testid="stAppViewContainer"] > div > div,
557
- [data-testid="stAppViewContainer"] > div > div > div,
558
- [data-testid="stVerticalBlock"],
559
- [data-testid="stHorizontalBlock"] {
560
- padding-left: 0 !important;
561
- padding-right: 0 !important;
562
- }
563
-
564
- /* نقشه */
565
- .folium-map {
566
- width: calc(100% + 24px) !important;
567
- margin-left: -12px !important;
568
- margin-right: -12px !important;
569
- position: relative !important;
570
- left: -12px !important;
571
- }
572
-
573
- [data-testid="stAppViewContainer"],
574
- .stApp {
575
- overflow-y: auto !important; /* اجازه اسکرول عمودی */
576
- overflow-x: hidden !important; /* جلوگیری از اسکرول افقی */
577
- }
578
-
579
- /* اطمینان از ارتفاع صددرصدی برای stApp */
580
- .stApp {
581
- height: 100% !important;
582
- display: block !important;
583
- }
584
- [data-testid="stAppViewContainer"]::-webkit-scrollbar {
585
- width: 8px;
586
- }
587
-
588
- [data-testid="stAppViewContainer"]::-webkit-scrollbar-track {
589
- background: #f1f1f1;
590
- border-radius: 4px;
591
- }
592
-
593
- [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb {
594
- background: #6a0dad;
595
- border-radius: 4px;
596
- }
597
-
598
- [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb:hover {
599
- background: #5a0a96;
600
- }
601
  }
602
 
603
  </style>
 
552
  }
553
 
554
  @media (min-width: 768px) {
555
+ /* اسکرول برای کادر موبایلی و محتوا */
556
+ [data-testid="stAppViewContainer"] {
557
+ overflow-y: auto !important;
558
+ overflow-x: hidden !important;
559
+ height: 667px !important;
560
+ }
561
+
562
+ .stApp {
563
+ height: 100% !important;
564
+ overflow-y: auto !important;
565
+ padding: 0 5px !important; /* ← برای پدینگ چپ و راست */
566
+ }
567
+
568
+ /* اطمینان از اینکه Scroll کار می‌کنه */
569
+ html, body {
570
+ height: 100% !important;
571
+ }
572
+
573
+ body {
574
+ overflow: hidden !important; /* این اجازه میده اسکرول فقط در stApp باشه */
575
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
576
  }
577
 
578
  </style>