mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs(app): improve navigation badge display
This commit is contained in:
@@ -80,7 +80,7 @@ defineShortcuts({
|
||||
<ModuleSelect />
|
||||
</div>
|
||||
|
||||
<UContentNavigation :navigation="navigation" highlight>
|
||||
<UContentNavigation :navigation="navigation" highlight :ui="{ linkTrailingBadge: 'font-semibold uppercase' }">
|
||||
<template #link-title="{ link }">
|
||||
<span class="inline-flex items-center gap-0.5">
|
||||
{{ link.title }}
|
||||
@@ -88,11 +88,6 @@ defineShortcuts({
|
||||
<sup v-if="link.module === 'ui-pro' && link.path.startsWith('/components')" class="text-[8px] font-medium text-(--ui-primary)">PRO</sup>
|
||||
</span>
|
||||
</template>
|
||||
<template #link-trailing="{ link }">
|
||||
<UBadge v-if="link.badge" variant="subtle" size="sm" color="neutral" class="rounded-[var(--ui-radius)] text-[9px] font-semibold uppercase">
|
||||
{{ link.badge }}
|
||||
</UBadge>
|
||||
</template>
|
||||
</UContentNavigation>
|
||||
</template>
|
||||
</UHeader>
|
||||
|
||||
@@ -17,7 +17,7 @@ const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<UContentNavigation :navigation="navigation" highlight>
|
||||
<UContentNavigation :navigation="navigation" highlight :ui="{ linkTrailingBadge: 'font-semibold uppercase' }">
|
||||
<template #link-title="{ link }">
|
||||
<span class="inline-flex items-center gap-0.5">
|
||||
{{ link.title }}
|
||||
@@ -25,11 +25,6 @@ const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')
|
||||
<sup v-if="link.module === 'ui-pro' && link.path.startsWith('/components')" class="text-[8px] font-medium text-(--ui-primary)">PRO</sup>
|
||||
</span>
|
||||
</template>
|
||||
<template #link-trailing="{ link }">
|
||||
<UBadge v-if="link.badge" variant="subtle" size="sm" color="neutral" class="rounded-[var(--ui-radius)] text-[9px] font-semibold uppercase">
|
||||
{{ link.badge }}
|
||||
</UBadge>
|
||||
</template>
|
||||
</UContentNavigation>
|
||||
</UPageAside>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user