avo-hq/avo

Add option to make table headers on index view sticky

Open

#1,116 opened on Aug 1, 2022

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Ruby (1,778 stars) (308 forks)user submission
Avo 2Avo 3Front endHelp wantedhacktoberfest

Description

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?

Contributor guide