Skip to content

Commit 3aeaddf

Browse files
committed
transformation info on the left column
1 parent 72c9ce4 commit 3aeaddf

File tree

1 file changed

+41
-4
lines changed

1 file changed

+41
-4
lines changed

src/seed/components/seed-choose-transform-rest.ts

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ export class SeedChooseTransformREST extends TransformRESTElement {
3333

3434

3535
render(): HTMLTemplateResult {
36-
return html`<div class="transformation-container"><form @submit="${this.submit}" autocomplete="off">${this.renderTransformationChooser()}${this.renderError()}${this.renderTransformationInfo()}${this.renderSourceForm()}${this.renderSubmit()}</form></div><slot></slot>`;
36+
return html`<div class="transformation-chooser">${this.renderTransformationInfo()}<div class="form"><form @submit="${this.submit}" autocomplete="off" method="post">${this.renderTransformationChooser()}${this.renderError()}${this.renderSourceForm()}${this.renderSubmit()}</form></div></div><slot></slot>`;
3737
}
3838

3939
renderSubmit(): HTMLTemplateResult {
4040
if (this._transformation == null) {
41-
return html`<div class="inputfield source"><input type="submit" disabled="true" value="Transform"/></div>`;
41+
return html`<div class="inputfield submit"><input type="submit" disabled="true" value="Transform"/></div>`;
4242
} else {
43-
return html`<div class="inputfield source"><input type="submit" value="Transform"/></div>`;
43+
return html`<div class="inputfield submit"><input type="submit" value="Transform"/></div>`;
4444
}
4545
}
4646

@@ -240,8 +240,45 @@ color: red;
240240
}
241241
select:invalid { color: darkgray; }
242242
div.transformation-info-container {
243-
border: 1px solid lightblue;
243+
border: 1px solid lightblue;
244+
padding: 10px;
245+
}
246+
div.inputfield {
247+
margin-bottom: 2ex;
248+
}
249+
div.inputfield label {
250+
display: block;
251+
font-weight: 600;
252+
}
253+
div.inputfield.submit input {
254+
font-size:1em;
255+
padding:5px;
256+
}
257+
div.inputfield.submit input:not([disabled]) {
258+
color:white;
259+
background-color:green;
260+
border:1px solid #336600;
261+
}
262+
263+
div.transformation-chooser {
264+
height: auto;
265+
overflow: hidden;
266+
}
267+
div.transformation-chooser div.form {
268+
display: block;
269+
width: auto;
270+
overflow: hidden;
271+
float: none;
244272
}
273+
div.transformation-info-container {
274+
float: right;
275+
width: auto;
276+
overflow: scroll;
277+
}
278+
div.clear {
279+
clear: both;
280+
}
281+
245282
div.transformation-info {
246283
height: 100%;
247284
font-family: monospace;

0 commit comments

Comments
 (0)