feat: 侧边栏分组图标与导航样式优化
- 分组支持 icon 字段,可按名称自动匹配或手动选择 - 左侧导航与总览卡片显示彩色 SVG 图标 - 优化侧栏链接圆角与选中态样式 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>图标</th>
|
||||
<th>名称</th>
|
||||
<th>排序</th>
|
||||
<th style="width: 200px">操作</th>
|
||||
@@ -39,6 +40,7 @@
|
||||
{% for g in groups %}
|
||||
<tr>
|
||||
<td>{{ g.id }}</td>
|
||||
<td><code>{{ g.resolve_icon_key() }}</code></td>
|
||||
<td>{{ g.name }}</td>
|
||||
<td>{{ g.sort_order }}</td>
|
||||
<td>
|
||||
@@ -59,7 +61,7 @@
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4" class="hint">暂无分组,点击「新建分组」</td>
|
||||
<td colspan="5" class="hint">暂无分组,点击「新建分组」</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user