fix grammar field width
This commit is contained in:
parent
7055d84020
commit
e2d917c5f0
2 changed files with 11 additions and 5 deletions
|
@ -615,8 +615,10 @@ const BoolField = ({ label, title, name, value }) => {
|
||||||
const GrammarControl = () => (
|
const GrammarControl = () => (
|
||||||
html`
|
html`
|
||||||
<div>
|
<div>
|
||||||
|
<div class="grammar">
|
||||||
<label for="template"></label>
|
<label for="template"></label>
|
||||||
<textarea id="grammar" name="grammar" placeholder="Use GBNF or JSON-Scheme + Converter" value="${params.value.grammar}" rows=4 oninput=${updateParams}/>
|
<textarea id="grammar" name="grammar" placeholder="Use GBNF or JSON-Scheme + Converter" value="${params.value.grammar}" rows=4 oninput=${updateParams}/>
|
||||||
|
</div>
|
||||||
<div class="grammar-columns">
|
<div class="grammar-columns">
|
||||||
<div class="json-schema-controls">
|
<div class="json-schema-controls">
|
||||||
<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} />
|
||||||
|
|
|
@ -78,8 +78,8 @@ p {
|
||||||
|
|
||||||
.json-schema-controls {
|
.json-schema-controls {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 97%;
|
width: 100%;
|
||||||
max-width: 97%;
|
max-width: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template: "a a";
|
grid-template: "a a";
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
|
@ -443,7 +443,11 @@ button:disabled {
|
||||||
box-shadow: 0 0 13px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 0 13px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Grammar text field */
|
.grammar {
|
||||||
|
width: 97%;
|
||||||
|
max-width: 97%;
|
||||||
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue