|
1 | 1 | <template lang="pug"> |
2 | 2 | q-page.grid.q-pa-sm |
3 | | - q-card.col.full-height.flex.column.outdated-card(flat bordered) |
| 3 | + q-card.col.full-height.flex.column.outdated-card(style="min-height: inherit" flat bordered) |
4 | 4 | q-bar.bg-transparent.border-bottom |
5 | | - q-toolbar-title Identités dont l'invitation n'est plus valide |
| 5 | + q-toolbar-title Identités avec invitation périmées |
6 | 6 | .row.items-center.no-wrap.q-px-sm.q-py-xs |
7 | 7 | q-btn-group(rounded flat) |
8 | 8 | q-btn( |
@@ -39,7 +39,7 @@ q-page.grid.q-pa-sm |
39 | 39 | q-btn(@click="refresh" icon="mdi-refresh" flat square dense) |
40 | 40 | q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Rafraîchir les données |
41 | 41 | .outdated-table-wrapper.col |
42 | | - q-markup-table.outdated-markup-table(dense flat) |
| 42 | + q-markup-table.sesame-sticky-last-column-table.sesame-sticky-thead.sesame-bordered-table.outdated-markup-table(dense flat) |
43 | 43 | thead |
44 | 44 | tr |
45 | 45 | th.text-left.outdated-select-cell |
@@ -68,7 +68,7 @@ q-page.grid.q-pa-sm |
68 | 68 | ) |
69 | 69 | td.text-left(v-for="column in renderedColumns" :key="column.name") {{ formatCell(column.field(row)) }} |
70 | 70 | td.text-left.outdated-actions-cell |
71 | | - q-btn(:to="identityPath(row)" color="primary" icon="mdi-eye" size="sm" flat round dense) |
| 71 | + q-btn(:to="identityPath(row)" target="_blank" color="primary" icon="mdi-eye" size="sm" flat round dense) |
72 | 72 | q-separator |
73 | 73 | .outdated-pagination.row.items-center.justify-end.no-wrap.q-gutter-xs.q-pa-sm |
74 | 74 | span.text-caption Lignes par page |
@@ -433,53 +433,70 @@ export default defineNuxtComponent({ |
433 | 433 |
|
434 | 434 | <style scoped> |
435 | 435 | .outdated-card { |
436 | | - min-height: inherit; |
| 436 | + border-right: none; |
437 | 437 | } |
438 | 438 |
|
439 | 439 | .outdated-table-wrapper { |
440 | 440 | min-height: 0; |
441 | | - overflow: auto; |
442 | | - border-top: 1px solid rgba(0, 0, 0, 0.12); |
443 | | -} |
444 | | -
|
445 | | -.body--dark .outdated-table-wrapper { |
446 | | - border-top-color: rgba(255, 255, 255, 0.12); |
| 441 | + width: 100%; |
| 442 | + max-width: 100%; |
| 443 | + overflow-x: auto; |
| 444 | + overflow-y: auto; |
447 | 445 | } |
448 | 446 |
|
449 | 447 | .outdated-markup-table { |
450 | | - min-width: max-content; |
| 448 | + display: block; |
| 449 | + width: 100%; |
| 450 | + min-width: 0; |
451 | 451 | } |
452 | 452 |
|
453 | | -.outdated-markup-table thead th { |
454 | | - position: sticky; |
455 | | - top: 0; |
456 | | - z-index: 1; |
457 | | - background: var(--q-card, white); |
458 | | - font-weight: 600; |
| 453 | +.outdated-markup-table :deep(table) { |
| 454 | + table-layout: auto; |
| 455 | + width: max-content !important; |
| 456 | + min-width: 100%; |
| 457 | + border-collapse: separate; |
| 458 | + border-spacing: 0; |
459 | 459 | } |
460 | 460 |
|
461 | | -.body--dark .outdated-markup-table thead th { |
462 | | - background: var(--q-dark); |
| 461 | +.outdated-markup-table :deep(th), |
| 462 | +.outdated-markup-table :deep(td) { |
| 463 | + min-width: 140px; |
| 464 | + white-space: nowrap; |
463 | 465 | } |
464 | 466 |
|
465 | | -.outdated-markup-table th, |
466 | | -.outdated-markup-table td { |
467 | | - white-space: nowrap; |
| 467 | +.outdated-markup-table :deep(thead tr) { |
| 468 | + position: sticky; |
| 469 | + top: 0; |
| 470 | + z-index: 3; |
468 | 471 | } |
469 | 472 |
|
470 | 473 | .outdated-select-cell { |
471 | | - width: 48px; |
| 474 | + width: 48px !important; |
| 475 | + min-width: 48px !important; |
| 476 | + max-width: 48px; |
472 | 477 | } |
473 | 478 |
|
474 | 479 | .outdated-actions-cell { |
475 | | - position: sticky; |
476 | | - right: 0; |
477 | | - width: 96px; |
478 | | - background: var(--q-card, white); |
| 480 | + position: sticky !important; |
| 481 | + right: 0 !important; |
| 482 | + width: 96px !important; |
| 483 | + min-width: 96px !important; |
| 484 | + max-width: 96px; |
| 485 | + border-left: 2px solid rgba(0, 0, 0, 0.12); |
| 486 | + background: #fff; |
479 | 487 | box-shadow: -4px 0 6px rgba(0, 0, 0, 0.04); |
480 | 488 | } |
481 | 489 |
|
| 490 | +th.outdated-actions-cell { |
| 491 | + z-index: 5 !important; |
| 492 | +} |
| 493 | +
|
| 494 | +td.outdated-actions-cell { |
| 495 | + z-index: 3 !important; |
| 496 | +} |
| 497 | +
|
482 | 498 | .body--dark .outdated-actions-cell { |
| 499 | + border-left-color: rgba(255, 255, 255, 0.12); |
483 | 500 | background: var(--q-dark); |
484 | 501 | } |
485 | 502 | </style> |
0 commit comments