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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -12
app.py CHANGED
@@ -132,6 +132,7 @@ html, body, .stApp {
132
  [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb:hover {
133
  background: #5a0a96;
134
  }
 
135
  }
136
 
137
 
@@ -553,26 +554,46 @@ h3 {
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>
 
132
  [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb:hover {
133
  background: #5a0a96;
134
  }
135
+
136
  }
137
 
138
 
 
554
 
555
  @media (min-width: 768px) {
556
  /* اسکرول برای کادر موبایلی و محتوا */
557
+ [data-testid="stAppViewContainer"] {
558
  overflow-y: auto !important;
559
  overflow-x: hidden !important;
560
  height: 667px !important;
561
+ }
562
+
563
+ .stApp {
564
  height: 100% !important;
565
  overflow-y: auto !important;
566
  padding: 0 5px !important; /* ← برای پدینگ چپ و راست */
567
+ }
568
+
569
+ /* اطمینان از اینکه Scroll کار می‌کنه */
570
+ html, body {
571
  height: 100% !important;
572
+ }
573
+
574
+ body {
575
  overflow: hidden !important; /* این اجازه میده اسکرول فقط در stApp باشه */
576
+ }
577
+ /* استایل کامل و مشخص برای scrollbar در دسکتاپ */
578
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar {
579
+ width: 8px; /* ضخامت مشخص */
580
+ }
581
+
582
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar-track {
583
+ background: #e0e0e0; /* رنگ خاکستری روشن زمینه */
584
+ border-radius: 4px;
585
+ }
586
+
587
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb {
588
+ background: #6a0dad; /* رنگ بنفش بدنه اسکرول */
589
+ border-radius: 4px;
590
+ border: 1px solid white; /* کمی کنتراست با پس‌زمینه */
591
+ }
592
+
593
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb:hover {
594
+ background: #4e0788; /* رنگ بنفش تیره‌تر هنگام هاور */
595
+ }
596
+
597
  }
598
 
599
  </style>