Files
theme-earth/templates/modules/widgets/categories.html
Ryan Wang ed652815b9 refactor: improve ui (#153)
优化整体的 UI 和布局。

```release-note
None
```
2024-07-08 09:05:23 +00:00

14 lines
500 B
HTML

<div
class="w-full overflow-hidden rounded-xl bg-white p-3 shadow transition-all duration-500 hover:shadow-md dark:bg-slate-800"
>
<h2 class="inline-flex items-center gap-2 text-base dark:text-slate-50">
<span class="i-tabler-category text-lg"></span>
分类目录
</h2>
<div class="mt-2" th:with="categories = ${categoryFinder.listAsTree()}">
<ul class="space-y-1">
<li th:replace="~{modules/category-tree :: single(categories=${categories})}" />
</ul>
</div>
</div>