Skip to content

Conversation

@noreb001
Copy link
Contributor

@noreb001 noreb001 commented Sep 6, 2024

Issue

Fixed Card clipping issue on Dashboard page in grid view. Where the sides of the card where being clipped once the hover animation is triggered.

BEFORE

desktop
image

Mobile
image

AFTER
Desktop
image

Mobile
image

Explanation:
By default ScrollAreaPrimitive.Root sets the class name to 'overflow-hidden'. Then passing a classname with 'overflow-visible' to the scroll-area UI component is not enough. "ScrollAreaPrimitiv.Viewport" applies some extra default styles if the props type='scroll'. I have added a boolean prop type that allows us to disable this and allow bot overflowX and overflowY to be visible in the scenarios where we need it.

Let me know if you need more information.

@AmruthPillai
Copy link
Owner

Really good solution, thank you for the work put into this. I'll make sure it hits rxresu.me very soon! :)

@AmruthPillai AmruthPillai merged commit febbdef into AmruthPillai:main Jan 12, 2025
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