UI Issue: "Share My Card" button overlaps the country dropdown
What happened
When opening the country selector, the "Share My Card" button overlaps the country dropdown. This causes the dropdown to cover the button and reduces the visible area for the country list, resulting in a poor user experience.
Steps to reproduce
- Open the card/profile page.
- Click the Country dropdown.
- Observe that the "Share My Card" button overlaps the dropdown while it is open.
Expected
The country dropdown should be fully visible without overlapping any other UI elements. The "Share My Card" button should remain below the dropdown (or the dropdown should render above other elements) so users can browse and select countries without obstruction.
Card / screenshot
GitHub username: sheikhwasimuddin
Screenshot:
Environment
- Browser: Chrome 137.0.x (or your browser/version)
- OS: Windows 11 (or your operating system)
I could reproduce this and fixed it.\n\nI opened PR 36. The dropdown now checks viewport space and opens upward when there is not enough room below the country flag trigger, so it no longer covers the Share My Card / platform buttons.\n\nI also ran npm run lint and npm test before opening the PR.
Hello @sheikhwasimuddin, thanks for reporting this issue It will be fixed ASAP
Hi @Younesfdj, I tested the latest changes. The issue appears to be fixed on desktop, but it is still reproducible on mobile devices (responsive view). The country dropdown still overlaps the "Share My Card" button, making part of the dropdown difficult to use.
@sheikhwasimuddin fixed by now, enjoy Gitfut⚽