Skip to content
English
Don't know what it's called55 / 71

Sticky header

What it's calledSticky headerfrozen header rowGlossary

What goes wrong

In a long table the header scrolls away with the rows, and a column of bare numbers no longer says what it measures.

The fix

Pin the header row to the top of the scroll area and show a soft edge under it only once rows pass beneath.

Tell your AI

Give the table header position: sticky; top: 0 on a var(--ds-surface) background inside the scroll container, and once the container is scrolled add box-shadow: var(--ds-shadow-sm) under it with a var(--ds-duration-fast) (160ms) fade; or install the LayQ component sticky-table (/registry/v1/controls-sticky-table.json).

  • --ds-surface
  • --ds-shadow-sm
  • --ds-duration-fast160ms
Why AI-generated UIs all look the same: 12 rules that fix it

April runs

12 runs · 94.6 km

RunkmPacebpm
Easy6.25:48138
Intervals8.04:52161
Recovery5.16:05129
Tempo9.44:41157
Long run18.55:26146
Easy7.05:40140
Hills6.85:58152
Recovery4.66:12126
Intervals7.54:49163
Easy6.05:45137
Tempo8.64:44155
Long run21.15:21149

Scrolled down: which column is pace?