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