From 5bb58ca4148c9b44d7f86f85c10040f252ed0bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 28 Jan 2022 23:24:30 +0100 Subject: [PATCH] [ui] move highlight logic to UpObject --- webui/src/components/display/UpObject.svelte | 81 +++++++++++++------- webui/src/components/widgets/Table.svelte | 42 ++-------- 2 files changed, 61 insertions(+), 62 deletions(-) diff --git a/webui/src/components/display/UpObject.svelte b/webui/src/components/display/UpObject.svelte index 5fa00c8..86627ff 100644 --- a/webui/src/components/display/UpObject.svelte +++ b/webui/src/components/display/UpObject.svelte @@ -1,14 +1,16 @@ -
- -
-
+
+
+ +
+
+ {#if banner && isFile} + + + + {:else if link} + + + + {:else} + + {/if} +
{#if banner && isFile} - - - - {:else if link} - - - - {:else} - +
+ +
{/if}
- {#if banner && isFile} -
- -
- {/if}