diff --git a/static/app.js b/static/app.js index 43577ea..e17b328 100644 --- a/static/app.js +++ b/static/app.js @@ -256,9 +256,10 @@ var eveningItems = []; var eRows = document.querySelectorAll('#evening-list .evening-row'); for (var j=0; j' + + '
' + '' + - ''; + '' + + '
'; + var noteHidden = document.createElement('input'); + noteHidden.type = 'hidden'; + noteHidden.className = 'item-note-val'; + noteHidden.value = improve; + div.appendChild(noteHidden); div.addEventListener('dragstart', dragStart); div.addEventListener('dragover', dragOver); div.addEventListener('drop', function(e){ dragDrop.call(this, e, 'evening-list'); }); diff --git a/static/style.css b/static/style.css index 473435c..9316536 100644 --- a/static/style.css +++ b/static/style.css @@ -1469,3 +1469,8 @@ body { .item-note { display: none; width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-family: inherit; color: var(--text); background: var(--bg); resize: vertical; min-height: 28px; box-sizing: border-box; margin-top: 6px; } .item-note:focus { outline: none; border-color: var(--primary); } .item-row { flex-wrap: wrap; } + +/* 责善改过行内布局 */ +.evening-row-main { display: flex; align-items: center; gap: 8px; width: 100%; } +.evening-row-main input[type="text"] { flex: 1; } +.evening-row-main .btn-note-toggle { display: inline-flex; }