Skip to content

Commit 85b1a2d

Browse files
committed
🐛 Fixing bug with image display
Fixes #336
1 parent 4f94999 commit 85b1a2d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/components/AppShelf/AppShelfItem.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {
66
Center,
77
createStyles,
88
useMantineColorScheme,
9+
Image,
910
} from '@mantine/core';
1011
import { motion } from 'framer-motion';
1112
import { useState } from 'react';
1213
import { useSortable } from '@dnd-kit/sortable';
1314
import { CSS } from '@dnd-kit/utilities';
14-
import Image from 'next/image';
1515
import { serviceItem } from '../../tools/types';
1616
import PingComponent from '../../modules/ping/PingModule';
1717
import AppShelfMenu from './AppShelfMenu';
@@ -125,13 +125,11 @@ export function AppShelfItem(props: any) {
125125
target={service.newTab === false ? '_top' : '_blank'}
126126
>
127127
<Image
128-
style={{
129-
cursor: 'pointer',
130-
}}
128+
styles={{ root: { cursor: 'pointer' } }}
131129
width={80}
132130
height={80}
133-
src={`/api/imageproxy?url=${service.icon}`}
134-
objectFit="contain"
131+
src={service.icon}
132+
fit="contain"
135133
/>
136134
</Anchor>
137135
</motion.i>

0 commit comments

Comments
 (0)