community-platform
community-platform copied to clipboard
[bug] Wrong Icon size on Fixing Fashion Map
Describe the bug The icons on the map of Fixing Fashion are not correct. The icons shown are for large display size, but they should be for small display size.
To Reproduce Steps to reproduce the behaviour:
- Go to https://community.fixing.fashion/map
- See the icons
Expected behaviour
-
Space icon should be: https://github.com/ONEARMY/community-platform/blob/master/src/assets/images/themes/fixing-fashion/avatar_space.svg
-
Member icon should be: https://github.com/ONEARMY/community-platform/blob/master/src/assets/images/themes/fixing-fashion/avatar_member.svg
Screenshots
Additional context Add any other context about the problem here
@davehakkens I can take this.
great. thanks!
Would be cool to try and get this done before Thursday @asheerrizvi if possible. Sharing a Patreon article about it. :)
hey @davehakkens this should be done for all screen sizes right?
yes.
Got you, it's somewhat tricky. Currently, the codebase uses src/modules/profile/SupportedProfileTypesFactory.ts
to fetch the type of icons it shows on the map. And all of them are generic icons. We will have to come up with a way to show theme based icons instead.
@davehakkens here's what I was able to come up with:
https://github.com/ONEARMY/community-platform/pull/1978
Hmm but it seems to already show correct on the Precious Plastic Instance.. Or because it doesnt use theming?
Yea that's because it is not using theming.
It is using pt-member badge there which is basically this:

Similar thing is happening in Project Kamp as well.
:tada: This issue has been resolved in version 1.29.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.31.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: