diff --git a/react/SquareAppIcon/Readme.md b/react/SquareAppIcon/Readme.md index 7dedfb2baf..570a0e387a 100644 --- a/react/SquareAppIcon/Readme.md +++ b/react/SquareAppIcon/Readme.md @@ -27,7 +27,7 @@ const theme = useCozyTheme() - + diff --git a/react/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap b/react/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap index e97a29c265..b429037dd5 100644 --- a/react/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap +++ b/react/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap @@ -35,7 +35,7 @@ exports[`SquareAppIcon component should render an app correctly with the app nam />
Test
@@ -77,7 +77,7 @@ exports[`SquareAppIcon component should render an app correctly with the given n />
modified
@@ -119,7 +119,7 @@ exports[`SquareAppIcon component should render an app with the app slug if no na />
testslug
@@ -168,7 +168,7 @@ exports[`SquareAppIcon component should render correctly an app in add state 1`] />
`; @@ -220,7 +220,7 @@ exports[`SquareAppIcon component should render correctly an app in error state 1 />
Test
@@ -262,7 +262,7 @@ exports[`SquareAppIcon component should render correctly an app in ghost state 1 />
Test
@@ -304,7 +304,7 @@ exports[`SquareAppIcon component should render correctly an app in maintenance s />
Test
@@ -349,7 +349,7 @@ exports[`SquareAppIcon component should render correctly an app in shortcut stat
shortcut
diff --git a/react/SquareAppIcon/index.jsx b/react/SquareAppIcon/index.jsx index 0155a0d030..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', @@ -121,7 +124,7 @@ export const SquareAppIcon = ({ app, name, variant }) => {