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 icon support to category cards #191

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

terotik
Copy link
Contributor

@terotik terotik commented Oct 11, 2023

Handling category icons in category list cards

Prior the plan admin has had to incorporate the icon in the category image for it to be visible in the card. That has caused all sorts of scaling problems and questions. Here we prioritise showing category icon in the card if no image is set for category.

Test cases (in staging):
Wärmeversorgung: no category image - svg icon - category has color
Mobilität: no category image - svg icon - category has no color
Fotovoltaik: no category image - bitmap icon - category has no color
Netto-Null-Stadtverwaltung: no category image - bitmap icon - category has color
Übrige Themen: category image - bitmap icon - category has no color

Screenshot 2023-10-11 at 20 23 16

@terotik terotik changed the title Use icons in lieu category image Add icon support to category cards Oct 11, 2023
@terotik terotik marked this pull request as ready for review October 11, 2023 17:49
@terotik terotik requested review from tituomin and woodwoerk October 11, 2023 17:49
@terotik terotik merged commit 98a2e9b into master Oct 13, 2023
3 checks passed
@terotik terotik deleted the feat/cards-with-category-icons branch October 13, 2023 06:35
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.

2 participants