bichle commited on
Commit
00c6260
·
verified ·
1 Parent(s): 2ce6448

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -125,6 +125,13 @@ def load_css():
125
  color: #333333 !important; /* Xám đen, tương phản tốt trên nền sáng */
126
  font-size: 1.05rem; /* Có thể thêm tùy chọn để chữ lớn hơn một chút */
127
  }
 
 
 
 
 
 
 
128
 
129
  /* ===== EXPANDERS (vẫn giữ như cũ) ===== */
130
  div[data-testid="stExpander"] {
@@ -132,15 +139,6 @@ def load_css():
132
  border-radius: 10px !important;
133
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
134
  }
135
-
136
- /* ===== 7. CỐ ĐỊNH DATAFRAME (KHỬ RUNG) ===== */
137
- div[data-testid="stDataFrame"] {
138
- /* Buộc sử dụng GPU acceleration và cố định vị trí render */
139
- transform: translateZ(0);
140
- -webkit-backface-visibility: hidden;
141
- /* Đảm bảo nó không bị ảnh hưởng bởi layout xung quanh */
142
- will-change: transform, contents;
143
- }
144
 
145
  </style>
146
  """, unsafe_allow_html=True)
 
125
  color: #333333 !important; /* Xám đen, tương phản tốt trên nền sáng */
126
  font-size: 1.05rem; /* Có thể thêm tùy chọn để chữ lớn hơn một chút */
127
  }
128
+
129
+ /* SAFE DataFrame Styling */
130
+ [data-testid="stDataFrame"] {
131
+ border: 1px solid #CCCCCC !important;
132
+ border-radius: 8px !important;
133
+ background-color: #FFFFFF !important;
134
+ }
135
 
136
  /* ===== EXPANDERS (vẫn giữ như cũ) ===== */
137
  div[data-testid="stExpander"] {
 
139
  border-radius: 10px !important;
140
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
141
  }
 
 
 
 
 
 
 
 
 
142
 
143
  </style>
144
  """, unsafe_allow_html=True)