Skip to content

Commit 768266c

Browse files
committed
refactor: update outdated identities page for improved UI and functionality
- Modified the layout and styling of the outdated identities page, enhancing the user experience with clearer invitation status messaging. - Updated table structure to support sticky headers and improved responsiveness. - Adjusted button functionality to open identity details in a new tab, facilitating better navigation. - Refined CSS styles for better visual consistency and usability across different display scenarios.
1 parent e807a55 commit 768266c

1 file changed

Lines changed: 45 additions & 28 deletions

File tree

apps/web/src/pages/identities/outdated.vue

Lines changed: 45 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template lang="pug">
22
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)
44
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
66
.row.items-center.no-wrap.q-px-sm.q-py-xs
77
q-btn-group(rounded flat)
88
q-btn(
@@ -39,7 +39,7 @@ q-page.grid.q-pa-sm
3939
q-btn(@click="refresh" icon="mdi-refresh" flat square dense)
4040
q-tooltip.text-body2(transition-show="scale" transition-hide="scale") Rafraîchir les données
4141
.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)
4343
thead
4444
tr
4545
th.text-left.outdated-select-cell
@@ -68,7 +68,7 @@ q-page.grid.q-pa-sm
6868
)
6969
td.text-left(v-for="column in renderedColumns" :key="column.name") {{ formatCell(column.field(row)) }}
7070
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)
7272
q-separator
7373
.outdated-pagination.row.items-center.justify-end.no-wrap.q-gutter-xs.q-pa-sm
7474
span.text-caption Lignes par page
@@ -433,53 +433,70 @@ export default defineNuxtComponent({
433433

434434
<style scoped>
435435
.outdated-card {
436-
min-height: inherit;
436+
border-right: none;
437437
}
438438
439439
.outdated-table-wrapper {
440440
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;
447445
}
448446
449447
.outdated-markup-table {
450-
min-width: max-content;
448+
display: block;
449+
width: 100%;
450+
min-width: 0;
451451
}
452452
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;
459459
}
460460
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;
463465
}
464466
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;
468471
}
469472
470473
.outdated-select-cell {
471-
width: 48px;
474+
width: 48px !important;
475+
min-width: 48px !important;
476+
max-width: 48px;
472477
}
473478
474479
.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;
479487
box-shadow: -4px 0 6px rgba(0, 0, 0, 0.04);
480488
}
481489
490+
th.outdated-actions-cell {
491+
z-index: 5 !important;
492+
}
493+
494+
td.outdated-actions-cell {
495+
z-index: 3 !important;
496+
}
497+
482498
.body--dark .outdated-actions-cell {
499+
border-left-color: rgba(255, 255, 255, 0.12);
483500
background: var(--q-dark);
484501
}
485502
</style>

0 commit comments

Comments
 (0)