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

Add support for favoriting maps #297

Merged
merged 5 commits into from
Jan 30, 2025

Conversation

lbulej3
Copy link
Contributor

@lbulej3 lbulej3 commented Jan 30, 2025

Adds support for being able to favorite maps and filter according to that.

Current Add/Remove button is placeholder as I will redo the whole Map details page once this is merged - as such it's purely functional.

I have toyed with the idea of having the heart on the map card be clickable as well, but decided against it because it would have to remain visible on hover while everything else fades away - can be done though if desired (to me it feels better UX-wise).

Resolves #250

@p2004a p2004a requested a review from bcdrme January 30, 2025 10:28
src/main/content/maps/map-data.ts Outdated Show resolved Hide resolved
@@ -92,6 +100,13 @@ const imageUrl = computed(() =>
}
transition: background-image 0.1s ease-in-out;
}
.favorite {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add a backdrop / background of some sort to improve readability on light maps (snow maps especially)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the same backdrop that is used for attributes to keep it consistent

@lbulej3 lbulej3 requested a review from bcdrme January 30, 2025 22:01
@bcdrme bcdrme merged commit f2da6d6 into beyond-all-reason:master Jan 30, 2025
1 check passed
@lbulej3 lbulej3 deleted the favorite-maps branch January 31, 2025 12:10
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.

Player Map Favorites
2 participants