ui: updated spacing issue and typo
This commit is contained in:
parent
8cf2f35223
commit
0b5a5aeadc
1 changed files with 117 additions and 117 deletions
|
@ -769,12 +769,12 @@
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// autosave template on every change
|
// autosave template on every change
|
||||||
userTemplateAutosave()
|
userTemplateAutosave()
|
||||||
}, [session.value])// removed params.value as it would re render the page.
|
}, [session.value])
|
||||||
|
|
||||||
const GrammarControl = () => (
|
const GrammarControl = () => (
|
||||||
html`
|
html`
|
||||||
<details>
|
<details>
|
||||||
<summary>Grammer Configuration</summary>
|
<summary>Grammar Configuration</summary>
|
||||||
<label for="template">Grammar</label>
|
<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}/>
|
<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} />
|
<input type="text" name="prop-order" placeholder="order: prop1,prop2,prop3" oninput=${updateGrammarJsonSchemaPropOrder} />
|
||||||
|
@ -884,7 +884,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
if (props?.header)
|
if (props?.header)
|
||||||
return html`<${ModeSelector} />`
|
return ModeSelector()
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<form class="flexform">
|
<form class="flexform">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue