prathameshgaikwad/Innings

Fix Match Card component's Link element

Open

#49 opened on Aug 11, 2024

 (0 comments) (0 reactions) (0 assignees)JavaScript (10 forks)auto 404
bugfrontendgood first issue

Repository metrics

Stars
 (6 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe the bug Currently, the Link wrapper around the Match Card stretches out to occupy the entire available horizontal space. This makes the link accessible (hoverable & clickable) even outside the card content.

To Reproduce Steps to reproduce the behavior:

  1. Go to Home Page, or a particular Tournament page.
  2. See the error on the Match Card.

Expected behavior The Link element must span the entire width of the Match Card, and it must not overflow it.

Screenshots

https://github.com/user-attachments/assets/2da16639-6623-430a-95ce-7bcbdefce922

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Microsoft Edge

Additional context The relevant component can be found under client/src/components/cards/MatchCard.

Contributor guide