refactor(ui): raw buttons, details and hr use Button, Collapsible and Separator

This commit is contained in:
sam committed 2026-10-26 20:00:57 +11:00
1 parent 7c050eef14
commit 3ff6867e84
32 files changed
+138 -152

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { Separator } from "@/components/ui/separator";
import { computed } from "vue";
import { useRoute } from "vue-router";
@@ -33,7 +34,7 @@ const items = computed(() =>
>
<ul class="flex flex-col gap-0.5 lg:sticky lg:top-20 max-lg:flex-row max-lg:gap-1">
<li v-for="(item, index) in items" :key="item.path" class="contents">
<hr v-if="item.dividerBefore === ''" class="my-4 border-border max-lg:hidden" />
<Separator v-if="item.dividerBefore === ''" class="my-4 max-lg:hidden" />
<p
v-else-if="item.dividerBefore"
:class="cn('mb-1 px-3 text-caption font-medium tracking-[0.06em] text-fg-subtle uppercase max-lg:hidden', index > 0 && 'mt-4')"