feat: ✨ software name on hover icon in instance ticker
This commit is contained in:
parent
432905efa6
commit
2a8b9dc92a
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="hpaizdrt" ref="ticker" :style="bg">
|
<div class="hpaizdrt" ref="ticker" :style="bg">
|
||||||
<img class="icon" :src="getInstanceIcon(instance)" aria-hidden="true" />
|
<img v-tooltip="instance.softwareName" class="icon" :src="getInstanceIcon(instance)" aria-hidden="true" />
|
||||||
<span class="name">{{ instance.name }}</span>
|
<span class="name">{{ instance.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -15,6 +15,7 @@ const props = defineProps<{
|
||||||
faviconUrl?: string;
|
faviconUrl?: string;
|
||||||
name: string;
|
name: string;
|
||||||
themeColor?: string;
|
themeColor?: string;
|
||||||
|
softwareName?: string;
|
||||||
};
|
};
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
@ -29,6 +30,7 @@ const instance = props.instance ?? {
|
||||||
'meta[name="theme-color-orig"]'
|
'meta[name="theme-color-orig"]'
|
||||||
) as HTMLMetaElement
|
) as HTMLMetaElement
|
||||||
)?.content,
|
)?.content,
|
||||||
|
software: Instance.softwareName || "Calckey",
|
||||||
};
|
};
|
||||||
|
|
||||||
const computedStyle = getComputedStyle(document.documentElement);
|
const computedStyle = getComputedStyle(document.documentElement);
|
||||||
|
|
Loading…
Reference in New Issue