Skip to content

feat(ui): fade scrollable content at the top and bottom edges - #3124

Merged
afonsojramos merged 1 commit into
mainfrom
scroll-fade-gradient-filters
Jul 30, 2026
Merged

feat(ui): fade scrollable content at the top and bottom edges#3124
afonsojramos merged 1 commit into
mainfrom
scroll-fade-gradient-filters

Conversation

@afonsojramos

Copy link
Copy Markdown
Member

Scrollable views currently cut off hard at the top and bottom edges, so content collides abruptly with the header and footer chrome. This adds a scrollFade opt-in to the shared Contents layout component that softly fades content in and out at both edges while scrolling.

The fade is driven entirely by CSS scroll-driven animations (animation-timeline: scroll(self block)) masking the scroll container, so there are no scroll listeners or re-renders, and each edge only fades while there is actually more content to scroll in that direction (measured in Chromium: no top fade at scroll position 0, no bottom fade at the end). Containers whose content fits leave the scroll timeline inactive and render no fade at all.

Enabled on Settings, Filters, Accounts, Scopes and the three login screens. Notifications is deliberately left out for now: read notifications are removed from the list, so it can go from overflowing to fitting while mounted, and Chromium holds the last fade value rather than clearing it, which would strand a fade above a list that can no longer scroll.

@afonsojramos
afonsojramos requested a review from setchy as a code owner July 30, 2026 17:51
@github-actions github-actions Bot added the enhancement New feature or enhancement to existing functionality label Jul 30, 2026
@sonarqubecloud

Copy link
Copy Markdown

@setchy setchy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❤️

@afonsojramos
afonsojramos merged commit cd6a1ad into main Jul 30, 2026
16 checks passed
@afonsojramos
afonsojramos deleted the scroll-fade-gradient-filters branch July 30, 2026 22:53
@github-actions github-actions Bot added this to the Release 7.x.x milestone Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement to existing functionality

Development

Successfully merging this pull request may close these issues.

2 participants