fix: 备注改名为详情,支持换行显示,扩大输入框

This commit is contained in:
2026-04-13 12:21:37 +08:00
parent e2db77e93f
commit 4d51a680aa

View File

@@ -360,8 +360,8 @@ INDEX_TEMPLATE = '''
<div id="addTagSuggestions" class="mt-1"></div>
</div>
<div class="mb-3">
<label class="form-label">备注</label>
<input type="text" id="addNote" class="form-control">
<label class="form-label">详情/备注</label>
<textarea id="addNote" class="form-control" rows="5"></textarea>
</div>
</form>
</div>
@@ -458,8 +458,8 @@ INDEX_TEMPLATE = '''
<div id="editTagSuggestions" class="mt-1"></div>
</div>
<div class="mb-3">
<label class="form-label">备注</label>
<textarea id="editNote" class="form-control" rows="3"></textarea>
<label class="form-label">详情/备注</label>
<textarea id="editNote" class="form-control" rows="5"></textarea>
</div>
</form>
</div>
@@ -698,7 +698,7 @@ async function showDetail(id) {
}
if (item.note) {
html += `<div class="mb-3"><strong>备注:</strong> ${escapeHtml(item.note)}</div>`;
html += `<div class="mb-3"><strong>详情/备注:</strong><br><div class="border rounded p-3 bg-light" style="white-space: pre-wrap; word-break: break-all;">${escapeHtml(item.note)}</div></div>`;
}
html += `<div class="text-muted small"><strong>创建时间:</strong> ${formatDate(item.created_at)}<br><strong>更新时间:</strong> ${formatDate(item.updated_at)}</div>`;