|
|
|
|
@ -58,7 +58,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- ── Field key ──────────────────────────────────────────────── -->
|
|
|
|
|
<div class="flex flex-col gap-1 w-full">
|
|
|
|
|
<label class="text-xs font-medium text-gray-500">
|
|
|
|
|
<label class="ve-label">
|
|
|
|
|
{glob.t('vcen.editor.mtas.editor.keyLabel')}
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
@ -66,7 +66,7 @@
|
|
|
|
|
oninput={handleKeyInput}
|
|
|
|
|
onblur={handleKeyCommit}
|
|
|
|
|
onkeydown={handleKeydown}
|
|
|
|
|
class={['rounded border bg-gray-800 px-2 py-1.5 text-sm text-gray-200 focus:outline-none focus:ring-2 w-full font-mono', keyError ? 'border-red-600 focus:ring-red-500' : 'border-gray-700 focus:ring-blue-500'].join(' ')}
|
|
|
|
|
class={['field-input font-mono', keyError ? 'invalid' : ''].join(' ')}
|
|
|
|
|
placeholder={glob.t('vcen.editor.mtas.editor.keyPlaceholder')}
|
|
|
|
|
/>
|
|
|
|
|
{#if keyError}
|
|
|
|
|
|