Skip to content

Conversation

@rickstaa
Copy link
Member

Adds a reusable component that improves horizontal scrolling behavior
on mobile devices.

Copilot AI review requested due to automatic review settings December 29, 2025 14:03
@rickstaa rickstaa requested a review from ECWireless as a code owner December 29, 2025 14:03
@vercel
Copy link

vercel bot commented Dec 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment Dec 30, 2025 11:35am

@rickstaa
Copy link
Member Author

@thebeyondr I created this for my gateway fees dashboard but added it as seperate pull request as it will also help your work on the voting transparency feature.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new reusable HorizontalScrollContainer component designed to improve horizontal scrolling behavior on mobile devices. The component includes a visual gradient indicator when content overflows and can be scrolled.

  • Introduces a new component with overflow detection and smooth scrolling behavior
  • Replaces inline Box styling with the reusable component in the account layout
  • Implements dynamic gradient indicator that appears/disappears based on scroll position

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
components/HorizontalScrollContainer/index.tsx New component implementing horizontal scroll container with overflow detection via ResizeObserver and scroll events, gradient fade indicator, and ref forwarding
layouts/account.tsx Refactors account tabs to use the new HorizontalScrollContainer component, replacing the previous inline Box implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Adds a reusable component that improves horizontal scrolling behavior
on mobile devices.
Make scrollbuffer a constant to improve code readability.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com
Ensure that the container scrolls to the active page when clicked.
Recalculate overflow effects when child elements change to ensure consistent
fading.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants