Skip to content

Conversation

@sankalp771
Copy link
Contributor

📌 Purpose

Fixes the arrow navigation buttons on the home page that were visible but non-functional when there wasn't enough content to scroll through. Previously, the arrows would show up even with only 1-2 subjects, giving users a poor experience with non-working buttons.


Corresponding issue: closes #399


🖼️ Showcase

The arrows disappear when no scrolling available
Since the data wasn't seeded , the ss are not available


🔧 Changes

Modified the conditional rendering logic in PapersCarousel.tsx to only show arrow buttons when there's actually content to scroll through
Added check for displayPapers.length > chunkSize to ensure arrows appear only when necessary
Improved user experience by hiding non-functional UI elements

Additional Notes

The fix maintains responsive behavior across all screen sizes (mobile, tablet, desktop)
No breaking changes to existing functionality
Arrows will automatically show/hide based on content availability
Testing can be done once database connection is properly configured with test data

@Abh1noob Abh1noob merged commit bbc6785 into CodeChefVIT:staging Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arrow on the home page

2 participants