Files
speckle-server/packages/frontend-2/components/header/NavLink.vue
T
andrewwallacespeckle a6b7266b85 FE2 - Title Bar Improvements (#1894)
* 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
2023-12-05 10:12:09 +00:00

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>