Checkpoint: Ajout de position sticky top:0 avec fond oklch opaque sur le tr d'en-tête du tableau vue Postes, et scroll vertical limité à calc(100vh - 340px) pour que l'en-tête reste visible lors du défilement.
This commit is contained in:
@@ -1082,10 +1082,10 @@ export default function DsiOpex() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="bg-card border border-border rounded-xl overflow-hidden">
|
||||
<div className="bg-card border border-border rounded-xl overflow-hidden" style={{ maxHeight: 'calc(100vh - 340px)', overflowY: 'auto' }}>
|
||||
<table className="w-full text-sm">
|
||||
<thead>
|
||||
<tr className="border-b border-border bg-muted/40">
|
||||
<tr className="border-b border-border" style={{ position: 'sticky', top: 0, zIndex: 20, background: 'oklch(0.94 0.005 80)' }}>
|
||||
<th className="text-left px-4 py-3 font-medium text-muted-foreground w-8">#</th>
|
||||
<th className="text-left px-4 py-3 font-medium text-muted-foreground">
|
||||
<SortBtn col="libelle" label="Poste de charge" />
|
||||
|
||||
Reference in New Issue
Block a user