Tamannathakur commited on
Commit
0152d38
·
verified ·
1 Parent(s): 4798d4a

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +26 -6
style.css CHANGED
@@ -1,4 +1,3 @@
1
-
2
  body,
3
  html {
4
  margin: 0;
@@ -241,15 +240,18 @@ button.floating-chat-btn:hover,
241
  /* Chat Popup Container */
242
  .chat-popup-box {
243
  position: fixed !important;
244
- bottom: 110px !important;
245
  right: 30px !important;
246
  width: 480px !important;
247
- max-height: 75vh !important;
 
248
  z-index: 999 !important;
249
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 255, 0.98) 100%) !important;
250
  border-radius: 20px !important;
251
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(102, 126, 234, 0.2) !important;
252
  overflow: hidden !important;
 
 
253
  animation: slideInUp 0.3s ease-out !important;
254
  }
255
 
@@ -285,8 +287,10 @@ button.floating-chat-btn:hover,
285
  /* Chat Content */
286
  .chat-content-area {
287
  padding: 20px !important;
288
- max-height: calc(75vh - 80px) !important;
 
289
  overflow-y: auto !important;
 
290
  background: transparent !important;
291
  pointer-events: auto !important;
292
  position: relative !important;
@@ -434,6 +438,23 @@ button.floating-chat-btn:hover,
434
  color: #333 !important;
435
  background: #f8f9fa !important;
436
  border: 1px solid #e9ecef !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
  }
438
 
439
  /* Scrollbar for chat content */
@@ -1213,5 +1234,4 @@ p[data-testid="block-info"] {
1213
  border: 2px solid white !important;
1214
  border-radius: 8px !important;
1215
  padding: 10px !important;
1216
- }
1217
-
 
 
1
  body,
2
  html {
3
  margin: 0;
 
240
  /* Chat Popup Container */
241
  .chat-popup-box {
242
  position: fixed !important;
243
+ bottom: 130px !important;
244
  right: 30px !important;
245
  width: 480px !important;
246
+ max-height: 65vh !important;
247
+ min-height: 400px !important;
248
  z-index: 999 !important;
249
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 255, 0.98) 100%) !important;
250
  border-radius: 20px !important;
251
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(102, 126, 234, 0.2) !important;
252
  overflow: hidden !important;
253
+ display: flex !important;
254
+ flex-direction: column !important;
255
  animation: slideInUp 0.3s ease-out !important;
256
  }
257
 
 
287
  /* Chat Content */
288
  .chat-content-area {
289
  padding: 20px !important;
290
+ flex: 1 !important;
291
+ max-height: calc(65vh - 140px) !important;
292
  overflow-y: auto !important;
293
+ overflow-x: hidden !important;
294
  background: transparent !important;
295
  pointer-events: auto !important;
296
  position: relative !important;
 
438
  color: #333 !important;
439
  background: #f8f9fa !important;
440
  border: 1px solid #e9ecef !important;
441
+ max-height: 200px !important;
442
+ overflow-y: auto !important;
443
+ }
444
+
445
+ /* Constrain tab content panels */
446
+ .chat-popup-box .gr-tabitem,
447
+ .chat-popup-box .gr-tab-item {
448
+ max-height: 300px !important;
449
+ overflow-y: auto !important;
450
+ overflow-x: hidden !important;
451
+ }
452
+
453
+ /* Ensure textboxes in tabs don't overflow */
454
+ .chat-popup-box .gr-textbox,
455
+ .chat-popup-box textarea {
456
+ max-height: 200px !important;
457
+ overflow-y: auto !important;
458
  }
459
 
460
  /* Scrollbar for chat content */
 
1234
  border: 2px solid white !important;
1235
  border-radius: 8px !important;
1236
  padding: 10px !important;
1237
+ }