From d3ea51fd466a8741afc4dfd4f0d0f2f77fb6467f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 20 Jul 2026 00:23:01 -0400 Subject: [PATCH] refac --- src/lib/components/AddConnectionModal.svelte | 20 +++++----- .../components/AddTerminalServerModal.svelte | 22 +++++------ src/lib/components/AddToolServerModal.svelte | 20 +++++----- .../Evaluations/ArenaModelModal.svelte | 26 ++++++------- .../Personalization/MemoryModal.svelte | 39 +++++++------------ 5 files changed, 58 insertions(+), 69 deletions(-) diff --git a/src/lib/components/AddConnectionModal.svelte b/src/lib/components/AddConnectionModal.svelte index 36bf48fdbe..8df0436283 100644 --- a/src/lib/components/AddConnectionModal.svelte +++ b/src/lib/components/AddConnectionModal.svelte @@ -59,9 +59,9 @@ let showDeleteConfirmDialog = false; const inputClass = - 'rounded-lg border border-gray-100/50 bg-gray-50/40 px-2 py-1.5 text-gray-700 outline-hidden transition-colors placeholder:text-gray-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-gray-300 dark:placeholder:text-gray-700 dark:focus:border-blue-500'; + 'bg-transparent outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700'; const selectClass = - 'rounded-lg border border-gray-100/50 bg-gray-50/40 px-2 pe-8 py-1.5 text-gray-700 outline-hidden transition-colors focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-gray-300 dark:focus:border-blue-500'; + 'dark:bg-gray-900 bg-transparent pr-5 outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700'; const verifyOllamaHandler = async () => { // remove trailing slash from url @@ -252,8 +252,8 @@
-
-

+
+

{#if edit} {$i18n.t('Edit Connection')} {:else} @@ -261,13 +261,13 @@ {/if}

@@ -341,7 +341,7 @@

-
+
{#if edit}
@@ -456,7 +456,7 @@
@@ -614,7 +614,7 @@ className="shrink-0 flex items-center mr-1" > @@ -350,16 +349,17 @@
- {#each $models.filter((m) => m?.owned_by !== 'arena') as model} {/each} - +
-
+
{#if edit}
-
+
-
{$i18n.t('Type')}
+
{$i18n.t('Type')}