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.

貢獻者指南