🐛 Fixing bug with image display

Fixes #336
This commit is contained in:
ajnart
2022-08-12 15:07:36 +02:00
parent 4f94999b07
commit 85b1a2d7da

View File

@@ -6,12 +6,12 @@ import {
Center,
createStyles,
useMantineColorScheme,
Image,
} from '@mantine/core';
import { motion } from 'framer-motion';
import { useState } from 'react';
import { useSortable } from '@dnd-kit/sortable';
import { CSS } from '@dnd-kit/utilities';
import Image from 'next/image';
import { serviceItem } from '../../tools/types';
import PingComponent from '../../modules/ping/PingModule';
import AppShelfMenu from './AppShelfMenu';
@@ -125,13 +125,11 @@ export function AppShelfItem(props: any) {
target={service.newTab === false ? '_top' : '_blank'}
>
<Image
style={{
cursor: 'pointer',
}}
styles={{ root: { cursor: 'pointer' } }}
width={80}
height={80}
src={`/api/imageproxy?url=${service.icon}`}
objectFit="contain"
src={service.icon}
fit="contain"
/>
</Anchor>
</motion.i>