@@ 18,6 18,7 @@
}
input[type=text] {
width: 40em;
+ display: block;
}
dialog {
width: calc(100% - 4em);
@@ 152,8 153,24 @@
? m('input', {type: 'text', value: name, onchange: setQuestionId(question)})
: m('h2', {}, [name])
),
- m('input', {type: 'text', value: question.url || '', name: 'url'}, []),
- m('input', {type: 'text', value: question.tags || '', name: 'tags'}, []),
+ m('div', {style: 'display: flex'}, [
+ m(
+ 'label',
+ {},
+ [
+ 'match url regex',
+ m('input', {type: 'text', value: question.url || '', name: 'url', onchange: updateField(question, 'url')}, []),
+ ]
+ ),
+ m(
+ 'label',
+ {},
+ [
+ 'tags',
+ m('input', {type: 'text', value: question.tags || '', name: 'tags', onchange: updateField(question, 'tags')}, []),
+ ]
+ ),
+ ]),
m(
'div',
{},