treetracker-web-map-client
treetracker-web-map-client copied to clipboard
refactor: custom icon sizing
Description
Will improve the resizing on mobile, first it was a fixed 28px now it is 75% of the initial(desktop) value.
All can be overridden with the sx prop, a good example is in the ImpactSection.
Reason for the change is that there is no need to set a different height and width since the svg will be rendered as a square anyway.
- add
sizeprop toCustomIconcomponent - update all components to use new
sizeprop - updated some icon sizes to improve ux
Type of change
- [x] Enhancement
Checklist:
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings
@dadiorchen we should consider this. It will greatly improve the UI of our icons, especially on mobile.
@RubenSmn okay, I will download this and run it to check locally, can you fix the conflict for me?
@dadiorchen done!
@RubenSmn do you think this is still valid or we can close it?
@dadiorchen I think it still could be valuable since it standardizes the size of a icon. For example on the top page: https://beta-map.treetracker.org/top the tree icons on the leader board have a incorrect size.