Make icon Ctrl-clickable

Will open a new tab
This commit is contained in:
ajnart
2022-08-09 13:23:02 +02:00
parent 91d079c5ab
commit bd0d5bc663

View File

@@ -120,20 +120,20 @@ export function AppShelfItem(props: any) {
scale: 1.1, scale: 1.1,
}} }}
> >
<Image <Anchor
style={{ href={service.openedUrl ?? service.url}
cursor: 'pointer', target={service.newTab === false ? '_top' : '_blank'}
}} >
width={80} <Image
height={80} style={{
src={`/api/imageproxy?url=${service.icon}`} cursor: 'pointer',
objectFit="contain" }}
onClick={() => { width={80}
if (service.openedUrl) { height={80}
window.open(service.openedUrl, service.newTab === false ? '_top' : '_blank'); src={`/api/imageproxy?url=${service.icon}`}
} else window.open(service.url, service.newTab === false ? '_top' : '_blank'); objectFit="contain"
}} />
/> </Anchor>
</motion.i> </motion.i>
</AspectRatio> </AspectRatio>
<PingComponent url={service.url} status={service.status} /> <PingComponent url={service.url} status={service.status} />