guardian/dotcom-rendering

Apply gradient to top and bottom of clue list when scrollable

开放

#13,543 创建于 2025年3月5日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (35 个派生)auto 404
Pick me upcrosswordsgood first issue

仓库指标

星标
 (271 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Currently we apply a gradient to the bottom of the clue list when there are more clues that are hidden and can be scrolled into view, but don't apply the same treatment to the top of the list to show it can be scrolled in the other direction.

We could also replace the debounce on the scroll and resize events so the visibility of the gradient changes whilst still scrolling rather than waiting until stopped. It uses debouncing rather than throttling as lodash.debounce is already a dependency in DCR — we could add lodash.throttle (or similar), or roll our own.

贡献者指南