From 6e34ae4ada9af782c8f7b8ea2b8149c3e66b45b4 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 26 Jul 2024 10:26:16 +0200 Subject: [PATCH] fix: project icon sizing and color (#7672) This PR fixes the project icon sizing and color in the create feature form. However, it includes a little more cleanup work. 1. I've switched out the previous project icon with a new one. The difference? The old one had lots of whitespace around it, which made sizing it awkward. 2. I've added a wrapping Icon component to common. The idea was taken from this thread on the MUI GitHub about how to make imported icons behave consistently with MUI icons. 3. Because I've switched the icon and added a new component, I've also gone and updated the other places we used the old icon, so that we're consistent about the usage. In create dialog form: ![image](https://github.com/user-attachments/assets/9b5caed7-cd50-437b-82bb-1d7ccbfaac3f) Updated icon in: Project card component ![image](https://github.com/user-attachments/assets/4ce809f4-4083-4554-ac4c-3597d9bf42df) Project creation form ![image](https://github.com/user-attachments/assets/4227416f-a56d-41ed-96a4-99b71a11dbf7) Sidebar and command bar (it's actually larger here, but maybe that's okay? Previous project was kinda small): ![image](https://github.com/user-attachments/assets/72b8aa2e-6970-4c11-9a4d-250648b44ad9) (Previous sidebar and command bar): ![image](https://github.com/user-attachments/assets/bcef9208-9819-4742-87a1-3a20d50d741c) I'd be willing to leave the sidebar and command bar for now if we think it's better to leave them using the same size as previously, but we can talk about that. I think it's better in the sidebar; undecided about the command bar. Bonus changes: I fixed some typos --- frontend/src/assets/icons/projectIconSmall.svg | 8 ++++---- .../RecentlyVisited/CommandResultGroup.tsx | 12 +++++------- .../DialogFormTemplate.styles.tsx | 8 +++----- .../DialogFormTemplate/DialogFormTemplate.tsx | 10 ++++------ .../component/common/FormTemplate/FormTemplate.tsx | 8 ++------ .../component/common/ProjectIcon/ProjectIcon.tsx | 6 ++++++ .../MainLayout/NavigationSidebar/IconRenderer.tsx | 11 ----------- .../NavigationSidebar/NavigationList.tsx | 7 ++++--- .../NewProjectCard/NewProjectCard.styles.ts | 14 +++++--------- .../project/NewProjectCard/NewProjectCard.tsx | 4 ++-- .../NewCreateProjectForm/CreateProjectDialog.tsx | 13 ++++--------- .../CreateFeatureDialog.tsx | 6 +++--- .../Settings/EditProject/UpdateProject.tsx | 2 +- 13 files changed, 43 insertions(+), 66 deletions(-) create mode 100644 frontend/src/component/common/ProjectIcon/ProjectIcon.tsx diff --git a/frontend/src/assets/icons/projectIconSmall.svg b/frontend/src/assets/icons/projectIconSmall.svg index 7e6546eedb..e90fd8c788 100644 --- a/frontend/src/assets/icons/projectIconSmall.svg +++ b/frontend/src/assets/icons/projectIconSmall.svg @@ -1,5 +1,5 @@ -