avo-hq/avo

Add option to make table headers on index view sticky

Aperta

#1116 aperta il 1 ago 2022

 (10 commenti) (0 reazioni) (0 assegnatari)Ruby (308 fork)user submission
Avo 2Avo 3Front endHelp wantedhacktoberfest

Metriche repository

Star
 (1778 stelle)
Metriche merge PR
 (Merge medio 1g 6h) (67 PR mergiate in 30 g)

Descrizione

Feature

Add option to make table headers on index view sticky. If we have many rows on the index table, after scrolling down the header becomes hidden, and although it's not crucial, it would be a nice UX improvement to be able to see the column names.

Current workarounds

None

Screenshots

image

Additional context

Initially, I thought this would be as simple as adding position: sticky to the table header, but it's not enough, because the whole table is inside a div with overflow-auto, and that doesn't play nicely with sticky. This article explains this problem well.

Any ideas on how best to implement this?

Guida contributor