From 58261a7b83428f49737f0f25317aef8b260a9d77 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 22 Oct 2024 23:54:37 -0700 Subject: [PATCH] refac: styling --- src/lib/components/admin/Evaluations.svelte | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib/components/admin/Evaluations.svelte b/src/lib/components/admin/Evaluations.svelte index 1d7019d32..0d6de7b82 100644 --- a/src/lib/components/admin/Evaluations.svelte +++ b/src/lib/components/admin/Evaluations.svelte @@ -290,9 +290,17 @@
{feedback.data?.model_id}
-
- {feedback.data.sibling_model_ids.join(', ')} -
+ + +
+ {#if feedback.data.sibling_model_ids.length > 2} + {feedback.data.sibling_model_ids.slice(0, 2).join(', ')}, and + {feedback.data.sibling_model_ids.length - 2} more + {:else} + {feedback.data.sibling_model_ids.join(', ')} + {/if} +
+
{:else}