swap deck card layout simplification + swipe interaction polish#16
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this pr refactors the swap deck UI on the home page to simplify the card layout, remove placeholder content, and improve swipe interaction behavior. the update focuses on making the swipe experience cleaner, more responsive, and visually consistent.
swap deck layout refactor
removed placeholder banners
the previous swap card contained multiple nested placeholder banner sections that were not related to the swipe functionality.
changes:
result:
the swap deck is now cleaner, easier to maintain, and focused purely on the swipe interaction.
card container improvements
layout simplification
the swipe card container was restructured to improve alignment and spacing.
changes:
result:
the swipe deck is now centered on the page and scales better across screen sizes.
swipe interaction improvements
pointer interaction handling
the swipe gesture logic was preserved but reorganized for better readability and structure.
behavior:
result:
swiping behavior remains the same but the implementation is easier to understand and maintain.
card animation behavior
drag feedback improvements
the swipe card continues to rotate and translate during drag gestures.
animation:
result:
the swipe interaction feels smooth and responsive.
visual feedback for swipe actions
like / dislike indicators
visual feedback appears during drag gestures to show swipe intent.
changes:
result:
users receive clearer feedback when performing swipe gestures.
card stacking effect
visual depth enhancement
added layered background elements under the swipe card.
changes:
result:
creates a lightweight stacked-card effect similar to swipe-based apps.
overall impact
this refactor improves the swap experience by: