avo-hq/avo

Add option to make table headers on index view sticky

Open

#1,116 创建于 2022年8月1日

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)Ruby (1,778 star) (308 fork)user submission
Avo 2Avo 3Front endHelp wantedhacktoberfest

描述

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?

贡献者指南

Add option to make table headers on index view sticky · avo-hq/avo#1116 | Good First Issue