editor: fix url, tags not saving
1 files changed, 19 insertions(+), 2 deletions(-)

M skurvey/editor.html
M skurvey/editor.html +19 -2
@@ 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',
  				        {},