1
0
Fork 0

将删除按钮移到第一行,避免因为文章的标题过长跨行导致删除按钮形状改变。

Alpha
Lan Hui 2023-03-26 21:05:05 +08:00
parent 9eb5210d3f
commit d4ac709385
1 changed files with 3 additions and 2 deletions

View File

@ -66,10 +66,11 @@
<div class="list-group"> <div class="list-group">
{% for text in text_list %} {% for text in text_list %}
<div class="list-group-item list-group-item-action" aria-current="true"> <div class="list-group-item list-group-item-action" aria-current="true">
<div>
<a type="button" href="/admin/article?delete_id={{text.article_id}}" class="btn btn-outline-danger btn-sm">删除</a>
</div>
<div class="d-flex w-100 justify-content-between"> <div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">{{ text.title }}</h5> <h5 class="mb-1">{{ text.title }}</h5>
<a type="button" href="/admin/article?delete_id={{text.article_id}}"
class="btn btn-outline-danger btn-sm">删除</a>
</div> </div>
<div><small>{{ text.source }}</small></div> <div><small>{{ text.source }}</small></div>
<div class="d-flex w-100 justify-content-between"> <div class="d-flex w-100 justify-content-between">