diff --git a/react/SquareAppIcon/Readme.md b/react/SquareAppIcon/Readme.md index 47cb31e93b..570a0e387a 100644 --- a/react/SquareAppIcon/Readme.md +++ b/react/SquareAppIcon/Readme.md @@ -27,7 +27,7 @@ const theme = useCozyTheme() <SquareAppIcon name="Add" variant="add" /> </Grid> <Grid item> - <SquareAppIcon app="testapp" name="No Account long name" variant="ghost" /> + <SquareAppIcon app="testapp" name="No Account long name very very very very long" variant="ghost" /> </Grid> <Grid item> <SquareAppIcon name="Shortcut" variant="shortcut" /> diff --git a/react/SquareAppIcon/index.jsx b/react/SquareAppIcon/index.jsx index dcf74d1155..4fd69a8d32 100644 --- a/react/SquareAppIcon/index.jsx +++ b/react/SquareAppIcon/index.jsx @@ -26,6 +26,9 @@ const useStyles = makeStyles(theme => ({ lineHeight: '1.188rem', margin: '0.5rem 0.25rem 0 0.25rem', textShadow: theme.textShadows[1], + lineClamp: '2', + boxOrient: 'vertical', + display: '-webkit-box', height: '2.375rem', [theme.breakpoints.down('sm')]: { width: '3.75rem',