Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: increase the mapbox popup width #2077

Merged
merged 3 commits into from
Mar 9, 2024
Merged

fix: increase the mapbox popup width #2077

merged 3 commits into from
Mar 9, 2024

Conversation

DnaX
Copy link
Contributor

@DnaX DnaX commented Mar 7, 2024

The actual width of the popup in the event map is only 80px, not enough to display the name of certain cities in one line and super inadequate for the city description.

My proposal is to change the CSS from width: 80px to max-width: 500px for desktop and max-width 250px for mobile. This can keep a small popup with smaller content as just the city name but expand for larger content. However this not completly fix the usability of the popup. For this reason I fixed the maximum height of the popop to 280px (calculated from the mobile map height) and added scrollable text in case of long text content.

As-is:
immagine

After the patch (mobile):
immagine

After the path (desktop):
immagine

@DnaX DnaX marked this pull request as ready for review March 7, 2024 15:58
@linuxbandit linuxbandit requested a review from WikiRik March 7, 2024 17:16
Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@WikiRik WikiRik changed the title Increase the mapbox popup width fix: increase the mapbox popup width Mar 9, 2024
@WikiRik WikiRik merged commit b1b9d44 into AEGEE:stable Mar 9, 2024
4 checks passed
serge1peshcoff pushed a commit that referenced this pull request Mar 9, 2024
## [1.35.11](1.35.10...1.35.11) (2024-03-09)

### Bug Fixes

* increase the mapbox popup width ([#2077](#2077)) ([b1b9d44](b1b9d44))
@serge1peshcoff
Copy link
Member

🎉 This PR is included in version 1.35.11 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants