Fix "Show on Map" link oversized clickable area (fixes #16536) - #16581
Fix "Show on Map" link oversized clickable area (fixes #16536)#16581Jayant-Sharma-Dev wants to merge 3 commits into
Conversation
|
WalkthroughChangesFacility map link
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR fixes an oversized clickable area on the "Show on Map" facility card link by adding the
Confidence Score: 5/5Safe to merge — the change is a single Tailwind class addition that narrows the link's clickable area without touching any logic. A one-class addition with no logic or behavior changes beyond fixing the documented UX bug. The fix is correct: No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "Merge branch 'develop' into issues/16536..." | Re-trigger Greptile |
remove a extra gap Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
@nihal467 please review it |
🚀 Preview Deployment Ready!🔗 Preview URL: https://pr-16581.care-preview-a7w.pages.dev 📱 Mobile Access: This preview will be automatically updated when you push new commits to this PR. |
🎭 Playwright Test ResultsStatus: ✅ Passed
📊 Detailed results are available in the playwright-final-report artifact. Run: #10311 |
|
Next time please make sure to follow the PR template. ( don't create new check list) |
|
Ok |
|
@nihal467 1 review is pending |
|
@NikhilA8606 Is there any problem in this pr ? |
Summary
Fixes an issue where the "Show on Map" link in facility cards had a clickable area larger than its visible text/icon, causing accidental navigation when clicking nearby empty space.
Fixes #16536
Problem
The link used
flex, which stretched it to fill the full width of its parent container — making the empty space beside the text clickable too.Solution
Added
w-fitto constrain the link to its actual content width, while keepingflexso the layout (position below the address, icon alignment) stays unchanged.Before:
Recording.2026-07-11.015136.mp4
After:
Recording.2026-07-18.011503.mp4
Testing
Merge Checklist
Summary by CodeRabbit