mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
✨ Make icon Ctrl-clickable
Will open a new tab
This commit is contained in:
@@ -119,6 +119,10 @@ export function AppShelfItem(props: any) {
|
|||||||
whileHover={{
|
whileHover={{
|
||||||
scale: 1.1,
|
scale: 1.1,
|
||||||
}}
|
}}
|
||||||
|
>
|
||||||
|
<Anchor
|
||||||
|
href={service.openedUrl ?? service.url}
|
||||||
|
target={service.newTab === false ? '_top' : '_blank'}
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
style={{
|
style={{
|
||||||
@@ -128,12 +132,8 @@ export function AppShelfItem(props: any) {
|
|||||||
height={80}
|
height={80}
|
||||||
src={`/api/imageproxy?url=${service.icon}`}
|
src={`/api/imageproxy?url=${service.icon}`}
|
||||||
objectFit="contain"
|
objectFit="contain"
|
||||||
onClick={() => {
|
|
||||||
if (service.openedUrl) {
|
|
||||||
window.open(service.openedUrl, service.newTab === false ? '_top' : '_blank');
|
|
||||||
} else window.open(service.url, service.newTab === false ? '_top' : '_blank');
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
</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