ui: updated spacing issue and typo

This commit is contained in:
Deepak Seth 2023-12-10 10:38:21 -08:00
parent 8cf2f35223
commit 0b5a5aeadc

View file

@ -769,12 +769,12 @@
useEffect(() => {
// autosave template on every change
userTemplateAutosave()
}, [session.value])// removed params.value as it would re render the page.
}, [session.value])
const GrammarControl = () => (
html`
<details>
<summary>Grammer Configuration</summary>
<summary>Grammar Configuration</summary>
<label for="template">Grammar</label>
<textarea id="grammar" name="grammar" placeholder="Use gbnf or JSON Schema+convert" value="${params.value.grammar}" rows=4 oninput=${updateParams}/>
<input type="text" name="prop-order" placeholder="order: prop1,prop2,prop3" oninput=${updateGrammarJsonSchemaPropOrder} />
@ -884,7 +884,7 @@
)
if (props?.header)
return html`<${ModeSelector} />`
return ModeSelector()
return html`
<form class="flexform">