chore: project list page icon and emoji improvement

This commit is contained in:
Anmol Singh Bhatia 2024-05-08 15:27:58 +05:30
parent c37264f3c8
commit 8ae1e38ef9
2 changed files with 5 additions and 1 deletions

View File

@ -203,7 +203,10 @@ export const ProjectCard: React.FC<Props> = observer((props) => {
<div className="absolute bottom-4 z-[1] flex h-10 w-full items-center justify-between gap-3 px-4">
<div className="flex flex-grow items-center gap-2.5 truncate">
<div className="h-9 w-9 flex-shrink-0 grid place-items-center rounded bg-white/90">
<ProjectLogo logo={project.logo_props} />
<ProjectLogo
logo={project.logo_props}
className={`${project.logo_props.in_use === "icon" ? "text-[18px]" : ""}`}
/>
</div>
<div className="flex w-full flex-col justify-between gap-0.5 truncate">

View File

@ -169,6 +169,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
[val?.type]: logoValue,
});
}}
className="flex items-center"
defaultIconColor={value?.in_use && value.in_use === "icon" ? value?.icon?.color : undefined}
defaultOpen={
value.in_use && value.in_use === "emoji" ? EmojiIconPickerTypes.EMOJI : EmojiIconPickerTypes.ICON