Skip to content

Implement Card Content Scroll Threshold#404

Merged
PauloMFJ merged 5 commits into
datacommonsorg:mainfrom
madebypxlp:paulo/scroll-threshold
Jul 22, 2026
Merged

Implement Card Content Scroll Threshold#404
PauloMFJ merged 5 commits into
datacommonsorg:mainfrom
madebypxlp:paulo/scroll-threshold

Conversation

@PauloMFJ

Copy link
Copy Markdown
Contributor

Ticket

image

@PauloMFJ PauloMFJ self-assigned this Jul 15, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the scroll detection in the CardContent component by replacing the custom useCachedResizeValues hook with a local ResizeObserver and useEffect that manages a canScroll state. It also updates the SCSS to conditionally apply scrollbar styles. The review feedback correctly identifies that the ResizeObserver needs to observe the inner container to detect dynamic content changes, and that the hasScrolled state should be reset when the content is no longer scrollable.

Comment thread dataweaver/apps/web/src/components/elements/card/content.tsx Outdated
Comment thread dataweaver/apps/web/src/components/elements/card/content.tsx Outdated

@beets beets left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the update!

@beets
beets dismissed nick-nlb’s stale review July 22, 2026 04:36

Paulo has made the requested change and I've reviewed the update. LGTM

@PauloMFJ
PauloMFJ merged commit 021dc2f into datacommonsorg:main Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants