|
38 | 38 | min-height: 0; |
39 | 39 | /* Ensure horizontal scroll works properly */ |
40 | 40 | white-space: nowrap; |
| 41 | + /* Force horizontal scroll for all screen sizes below 1200px */ |
| 42 | + min-width: 0; |
41 | 43 | } |
42 | 44 |
|
43 | 45 | /* Custom scrollbar styling */ |
|
78 | 80 | margin-bottom: 0; |
79 | 81 | padding-bottom: 0; |
80 | 82 | /* Ensure pagination maintains its layout on smaller screens */ |
81 | | - min-width: 1200px; /* Match table minimum width */ |
| 83 | + width: 100%; |
82 | 84 | overflow-x: auto; /* Allow horizontal scroll if needed */ |
83 | 85 | } |
84 | 86 |
|
|
91 | 93 | border-radius: 12px; |
92 | 94 | overflow: hidden; |
93 | 95 | table-layout: fixed; |
94 | | - min-width: 1200px; /* Increased minimum width to ensure all content fits properly */ |
| 96 | + min-width: 1200px; /* Minimum width to ensure all content fits properly */ |
95 | 97 | margin: 0; /* Remove any margin */ |
96 | 98 | padding: 0; /* Remove any padding */ |
| 99 | + /* Ensure table doesn't shrink below minimum width */ |
| 100 | + flex-shrink: 0; |
97 | 101 | } |
98 | 102 |
|
99 | 103 | /* Ensure table cells don't wrap content */ |
|
350 | 354 | flex: 1; |
351 | 355 | } |
352 | 356 |
|
353 | | - |
354 | 357 | /* Ensure table scrolls horizontally on mobile */ |
355 | 358 | .table-responsive-container { |
356 | 359 | overflow-x: auto; |
357 | | - min-width: 1200px; /* Match table minimum width */ |
| 360 | + min-width: 0; /* Allow container to shrink */ |
| 361 | + width: 100%; |
358 | 362 | } |
359 | 363 |
|
360 | 364 | /* Ensure table headers and cells don't break */ |
|
425 | 429 | height: 44px; |
426 | 430 | font-size: 13px; |
427 | 431 | } |
| 432 | + |
| 433 | + /* Ensure horizontal scrolling works on very small screens */ |
| 434 | + .table-responsive-container { |
| 435 | + overflow-x: auto !important; |
| 436 | + min-width: 0 !important; |
| 437 | + width: 100% !important; |
| 438 | + } |
| 439 | + |
| 440 | + .main-table-container { |
| 441 | + min-width: 1200px !important; |
| 442 | + width: 1200px !important; |
| 443 | + } |
428 | 444 | } |
429 | 445 |
|
430 | 446 | /* ≤ 1024 px – turn the whole header into a 2‑row grid */ |
|
489 | 505 |
|
490 | 506 | .table-responsive-container { |
491 | 507 | overflow-x: auto; |
492 | | - min-width: 1200px; /* Match table minimum width */ |
| 508 | + min-width: 0; /* Allow container to shrink */ |
| 509 | + width: 100%; |
493 | 510 | } |
494 | 511 |
|
495 | 512 | .main-table-container th, |
|
499 | 516 | text-overflow: ellipsis; |
500 | 517 | } |
501 | 518 | } |
| 519 | + |
| 520 | +/* Ensure horizontal scrolling for all screen sizes below 1200px */ |
| 521 | +@media (max-width: 1199px) { |
| 522 | + .table-responsive-container { |
| 523 | + overflow-x: auto !important; |
| 524 | + min-width: 0 !important; |
| 525 | + width: 100% !important; |
| 526 | + } |
| 527 | + |
| 528 | + .main-table-container { |
| 529 | + min-width: 1200px !important; |
| 530 | + width: 1200px !important; |
| 531 | + } |
| 532 | +} |
0 commit comments