GSMEthesis commited on
Commit
359103f
·
verified ·
1 Parent(s): 46b0281

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -6
app.py CHANGED
@@ -97,18 +97,41 @@ html, body, .stApp {
97
  background: #333;
98
  border-radius: 2px;
99
  }
100
-
101
- .stApp {
102
- width: 100% !important;
103
- height: 100% !important;
104
- overflow: auto !important;
105
- }
106
 
107
  /* تنظیمات اصلی */
108
  body, .stApp, [data-testid="stAppViewContainer"] {
109
  background-color: var(--background) !important;
110
  color: var(--text) !important;
111
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
113
 
114
 
 
97
  background: #333;
98
  border-radius: 2px;
99
  }
 
 
 
 
 
 
100
 
101
  /* تنظیمات اصلی */
102
  body, .stApp, [data-testid="stAppViewContainer"] {
103
  background-color: var(--background) !important;
104
  color: var(--text) !important;
105
  }
106
+
107
+ [data-testid="stAppViewContainer"],
108
+ .stApp {
109
+ overflow-y: auto !important; /* اجازه اسکرول عمودی */
110
+ overflow-x: hidden !important; /* جلوگیری از اسکرول افقی */
111
+ }
112
+
113
+ /* اطمینان از ارتفاع صددرصدی برای stApp */
114
+ .stApp {
115
+ height: 100% !important;
116
+ display: block !important;
117
+ }
118
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar {
119
+ width: 8px;
120
+ }
121
+
122
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar-track {
123
+ background: #f1f1f1;
124
+ border-radius: 4px;
125
+ }
126
+
127
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb {
128
+ background: #6a0dad;
129
+ border-radius: 4px;
130
+ }
131
+
132
+ [data-testid="stAppViewContainer"]::-webkit-scrollbar-thumb:hover {
133
+ background: #5a0a96;
134
+ }
135
  }
136
 
137