1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Revert "fix: handle long owner names for projects (#7215)"

This reverts commit 5c1cd49aaa.
This commit is contained in:
Thomas Heartman 2024-05-30 10:30:23 +02:00
parent 5c1cd49aaa
commit 669e21eef0
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78
2 changed files with 12 additions and 10 deletions

View File

@ -11,17 +11,17 @@ interface IProjectCardFooterProps {
}
const StyledFooter = styled(Box)(({ theme }) => ({
display: 'grid',
gridTemplateColumns: 'auto 1fr auto',
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
padding: theme.spacing(1.5, 3, 2.5, 3),
padding: theme.spacing(1.5, 3),
background: theme.palette.envAccordion.expanded,
boxShadow: theme.boxShadows.accordionFooter,
}));
const StyledFavoriteIconButton = styled(FavoriteIconButton)(({ theme }) => ({
marginRight: theme.spacing(-1),
marginBottom: theme.spacing(-1),
marginLeft: 'auto',
}));
export const ProjectCardFooter: FC<IProjectCardFooterProps> = ({

View File

@ -41,13 +41,15 @@ const useOwnersMap = () => {
};
};
const StyledContainer = styled('div')(({ theme }) => ({
marginBottom: theme.spacing(1),
display: 'flex',
alignItems: 'flex-end',
}));
const StyledUserName = styled('p')(({ theme }) => ({
fontSize: theme.typography.body1.fontSize,
margin: theme.spacing(0, 0, 0.5, 0),
overflowX: 'hidden',
textOverflow: 'ellipsis',
textWrap: 'nowrap',
alignSelf: 'end',
}));
export const ProjectOwners: FC<IProjectOwnersProps> = ({ owners = [] }) => {
@ -55,7 +57,7 @@ export const ProjectOwners: FC<IProjectOwnersProps> = ({ owners = [] }) => {
const users = owners.map(ownersMap);
return (
<>
<StyledContainer>
<GroupCardAvatars
header={owners.length === 1 ? 'Owner' : 'Owners'}
users={users}
@ -68,6 +70,6 @@ export const ProjectOwners: FC<IProjectOwnersProps> = ({ owners = [] }) => {
</StyledUserName>
}
/>
</>
</StyledContainer>
);
};