diff --git a/src/components/Dashboard/Tiles/Apps/AppTile.tsx b/src/components/Dashboard/Tiles/Apps/AppTile.tsx
index 1e9f94d32..0bd65decf 100644
--- a/src/components/Dashboard/Tiles/Apps/AppTile.tsx
+++ b/src/components/Dashboard/Tiles/Apps/AppTile.tsx
@@ -23,39 +23,40 @@ export const AppTile = ({ className, app }: AppTileProps) => {
classes: { card: cardClass },
} = useCardStyles(false);
- const inner = (
- <>
-
- {app.name}
-
-
- {/* eslint-disable-next-line @next/next/no-img-element */}
-
-
- >
- );
+ function Inner() {
+ return (
+ <>
+
+ {app.name}
+
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
+
+ >
+ );
+ }
return (
-
{!app.url || isEditMode ? (
- {inner}
+
) : (
{
component={NextLink}
href={app.behaviour.externalUrl.length > 0 ? app.behaviour.externalUrl : app.url}
target={app.behaviour.isOpeningNewTab ? '_blank' : '_self'}
- className={cx(classes.button, classes.link)}
+ className={cx(classes.button)}
>
- {inner}
+
)}
@@ -76,14 +77,14 @@ export const AppTile = ({ className, app }: AppTileProps) => {
const useStyles = createStyles((theme, _params, getRef) => ({
image: {
ref: getRef('image'),
- maxHeight: '80%',
- maxWidth: '80%',
- transition: 'transform 100ms ease-in-out',
+ maxHeight: '90%',
+ maxWidth: '90%',
},
appName: {
ref: getRef('appName'),
},
button: {
+ paddingBottom: 10,
height: '100%',
width: '100%',
display: 'flex',
@@ -91,20 +92,12 @@ const useStyles = createStyles((theme, _params, getRef) => ({
alignItems: 'center',
gap: 4,
},
- link: {
- [`&:hover .${getRef('image')}`]: {
- // TODO: add styles for image when hovering card
- },
- [`&:hover .${getRef('appName')}`]: {
- // TODO: add styles for app name when hovering card
- },
- },
}));
export const appTileDefinition = {
component: AppTile,
- minWidth: 2,
+ minWidth: 1,
+ minHeight: 1,
maxWidth: 12,
- minHeight: 2,
maxHeight: 12,
};