Skip to content

fix(ui):Card Click Area Not Fully Responsive on Mobile#5556

Open
ganeshkumara10 wants to merge 2 commits intousememos:mainfrom
ganeshkumara10:Fully_Responsive-Card-Area
Open

fix(ui):Card Click Area Not Fully Responsive on Mobile#5556
ganeshkumara10 wants to merge 2 commits intousememos:mainfrom
ganeshkumara10:Fully_Responsive-Card-Area

Conversation

@ganeshkumara10
Copy link
Contributor

Fixes #5508

Summary
Bind card click to entire card container(i.e arcticle tag) , preserve selection and interactive elements

Fix
1.Add an article-level tag delegated click handler that navigates to the detail page.
2. This handler is defensive i.e it ignores non-primary clicks, modifier keys, double-clicks, active text selection, interactive elements (links, buttons, inputs, menuitems), image grids, attachment area, and map containers. Ex: Mark attachment area with className="no-goto" so clicks inside attachments don’t trigger navigation.
3. Preserve existing onContentClick / onContentDoubleClick / onToggleNsfwVisibility behavior (we do not stop propagation).

UT for Mobile:

Screen.Recording.2026-02-01.at.3.52.22.PM.mov

UT for Desktop:

Screen.Recording.2026-02-01.at.3.48.05.PM.mov

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.

Card Click Area Not Fully Responsive on Mobile

1 participant