diff --git a/src/lib/components/ServerCard.svelte b/src/lib/components/ServerCard.svelte index 2d06eef..16da17e 100644 --- a/src/lib/components/ServerCard.svelte +++ b/src/lib/components/ServerCard.svelte @@ -42,14 +42,13 @@ if (typeof monitor !== 'undefined') { status = monitor.status; } - if (icons.length != 0 && typeof server.icon !== "undefined") { + if (icons.length != 0 && typeof server.icon !== 'undefined') { const rootSplit = server.icon.split('/'); const root = rootSplit[rootSplit.length - 1]; if (server.iconType === IconType.SVG) { checkForImage(server); - } - else { + } else { if (icons.includes(`${root}-36.${server.iconType}`)) { img_source = `${server.icon}-36.${server.iconType}`; } else { @@ -62,7 +61,8 @@
{/if} {:else}{/if} - {server.name} + {server.name} {#if hover.title}{server.desc}
diff --git a/src/lib/components/ServiceCard.svelte b/src/lib/components/ServiceCard.svelte index cc05270..597c41a 100644 --- a/src/lib/components/ServiceCard.svelte +++ b/src/lib/components/ServiceCard.svelte @@ -87,11 +87,7 @@Background
Foreground
Muted
diff --git a/src/routes/servers/+page.svelte b/src/routes/servers/+page.svelte index 8402984..ecc60f8 100644 --- a/src/routes/servers/+page.svelte +++ b/src/routes/servers/+page.svelte @@ -4,7 +4,7 @@ import type { Server } from '$lib/types/data-types'; import { io } from 'socket.io-client'; import type { Heartbeat } from '$lib/types/uptime-kuma-types'; - import ServerCard from "$lib/components/ServerCard.svelte"; + import ServerCard from '$lib/components/ServerCard.svelte'; let { data }: { data: { promise: Promise