From 0f50c43782bb8daeced56007ef9836ba63f6e2c5 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 6 Jan 2024 03:05:30 +0100 Subject: [PATCH] Adjust ServerCard for usage with Server list --- src/lib/components/ServerCard.svelte | 92 +++++++++++++++++---------- src/lib/components/ServiceCard.svelte | 4 +- 2 files changed, 60 insertions(+), 36 deletions(-) diff --git a/src/lib/components/ServerCard.svelte b/src/lib/components/ServerCard.svelte index 16da17e..76cb242 100644 --- a/src/lib/components/ServerCard.svelte +++ b/src/lib/components/ServerCard.svelte @@ -1,12 +1,13 @@
-
+
(hover.title = true)} @@ -92,17 +97,21 @@ {/if} {:else}{/if} - {server.name} - {#if hover.title} -
- -
+ {#if typeof server.href !== 'undefined'} + {server.name} + {#if hover.title} +
+ +
+ {/if} + {:else} +

{server.name}

{/if}
@@ -142,27 +151,42 @@ {/if}

{server.desc}

-

{server.warn}

+ {#if typeof server.connection !== 'undefined'} +
+ +
+ {/if}