mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
✨ Make icon Ctrl-clickable
Will open a new tab
This commit is contained in:
@@ -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} />
|
||||||
|
|||||||
Reference in New Issue
Block a user