From 87304cb4b580e2e75381e7b8b3a4d5ebcc1aa618 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 15 Jan 2025 19:28:12 +0100 Subject: [PATCH] small nits autosize and lighweight arg textarea --- frontend/src/lib/autosize.ts | 2 +- frontend/src/lib/components/LightweightArgInput.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/autosize.ts b/frontend/src/lib/autosize.ts index 5273d2e4ac..cffb55d375 100644 --- a/frontend/src/lib/autosize.ts +++ b/frontend/src/lib/autosize.ts @@ -34,7 +34,7 @@ export const action = (node) => { } else { node.value = '|' node.style.height = '0px' - height = node.scrollHeight + height = node.scrollHeight + 20 node.value = '' } } diff --git a/frontend/src/lib/components/LightweightArgInput.svelte b/frontend/src/lib/components/LightweightArgInput.svelte index 51a13ebbcb..adbaa9c157 100644 --- a/frontend/src/lib/components/LightweightArgInput.svelte +++ b/frontend/src/lib/components/LightweightArgInput.svelte @@ -524,7 +524,7 @@ }} use:autosize style="min-height: 5px;" - class="col-span-10 {valid && error == '' + class="col-span-10 !leading-tight !text-2xs {valid && error == '' ? '' : 'border !border-red-700 !border-opacity-70 focus:!border-red-700 focus:!border-opacity-30'}" placeholder={defaultValue ? JSON.stringify(defaultValue, null, 4) : ''}