a6b7266b85
* Title Bar Improvements * Update scale of notifications * Add missing truncate on Viewer breadcrumb * Fix so only last item is truncated * Merge * Remove unneeded padding * Tailwind group fix
34 lines
722 B
Vue
34 lines
722 B
Vue
<template>
|
|
<div class="text-foreground hover:text-primary-focus transition last:truncate">
|
|
<NuxtLink
|
|
:to="to"
|
|
class="flex gap-1 items-center text-sm ml-0.5"
|
|
active-class="text-primary font-bold group is-active"
|
|
>
|
|
<div v-if="separator">
|
|
<ChevronRightIcon class="flex w-4 h-4" />
|
|
</div>
|
|
<div class="group-[.is-active]:truncate">
|
|
{{ name || to }}
|
|
</div>
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { ChevronRightIcon } from '@heroicons/vue/20/solid'
|
|
defineProps({
|
|
separator: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
to: {
|
|
type: String,
|
|
default: '/'
|
|
},
|
|
name: {
|
|
type: String,
|
|
default: null
|
|
}
|
|
})
|
|
</script>
|