fix: 备注改名为详情,支持换行显示,扩大输入框
This commit is contained in:
@@ -360,8 +360,8 @@ INDEX_TEMPLATE = '''
|
|||||||
<div id="addTagSuggestions" class="mt-1"></div>
|
<div id="addTagSuggestions" class="mt-1"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">备注</label>
|
<label class="form-label">详情/备注</label>
|
||||||
<input type="text" id="addNote" class="form-control">
|
<textarea id="addNote" class="form-control" rows="5"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -458,8 +458,8 @@ INDEX_TEMPLATE = '''
|
|||||||
<div id="editTagSuggestions" class="mt-1"></div>
|
<div id="editTagSuggestions" class="mt-1"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">备注</label>
|
<label class="form-label">详情/备注</label>
|
||||||
<textarea id="editNote" class="form-control" rows="3"></textarea>
|
<textarea id="editNote" class="form-control" rows="5"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -698,7 +698,7 @@ async function showDetail(id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (item.note) {
|
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>`;
|
html += `<div class="text-muted small"><strong>创建时间:</strong> ${formatDate(item.created_at)}<br><strong>更新时间:</strong> ${formatDate(item.updated_at)}</div>`;
|
||||||
|
|||||||
Reference in New Issue
Block a user