The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix Avatars no centered (#1050)
brendanlaschke2128d4421290
diff --git a/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsx b/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsxindex 9156f3a7632..36556278c8d 100644--- a/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsx+++ b/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsx@@ -32,6 +32,7 @@ type StyledLogoProps = {const StyledLogo = styled.div<StyledLogoProps>`background: url(${(props) => props.logo});+ background-position: center;background-size: cover;border-radius: ${({ theme }) => theme.border.radius.xs};height: 16px;diff --git a/front/src/modules/users/components/Avatar.tsx b/front/src/modules/users/components/Avatar.tsxindex 25718306c28..b8fc7c674df 100644--- a/front/src/modules/users/components/Avatar.tsx+++ b/front/src/modules/users/components/Avatar.tsx@@ -23,6 +23,7 @@ export const StyledAvatar = styled.div<OwnProps & { colorId: string }>`!isNonEmptyString(avatarUrl) ? stringToHslColor(colorId, 75, 85) : 'none'};${({ avatarUrl }) =>isNonEmptyString(avatarUrl) ? `background-image: url(${avatarUrl});` : ''}+ background-position: center;background-size: cover;border-radius: ${(props) => (props.type === 'rounded' ? '50%' : '2px')};color: ${({ colorId }) => stringToHslColor(colorId, 75, 25)};