Files
speckle-server/packages/frontend-2/components/header/NavLink.vue
T
Benjamin Ottensten 1f1300baaf Fix: Various papercuts (#3296)
* Update move copy

* Ensure version counter doesn't break onto 2 lines

* Increase contrast in breadcrumb

Darker '/' and only font-medium on the active item

* Make it clearer to input new short ID and not current

* Add ... to menu items

* Change more "..." in menu items

* Fix gap and border between invite banners

And move the background to the individual banners
2024-10-18 12:40:20 +02:00

55 lines
1.2 KiB
Vue

<template>
<div
class="text-foreground hover:text-primary-focus transition truncate flex gap-1 items-center ml-1"
>
<div v-if="separator">
<svg
width="8"
height="24"
viewBox="0 0 8 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class="text-outline-5"
>
<path d="M2 18L6 6" stroke="currentColor" />
</svg>
</div>
<NuxtLink
:to="disableLink ? undefined : to"
class="flex gap-1 items-center text-body-xs ml-0.5 text-foreground-2 select-none truncate"
:class="disableLink ? '' : 'hover:!text-foreground'"
active-class="group is-active !text-foreground font-medium"
>
<div class="truncate">
{{ name || to }}
</div>
<!-- Chevron to return in future -->
<!-- <ChevronDownIcon v-if="!hideChevron" class="h-2.5 w-2.5" /> -->
</NuxtLink>
</div>
</template>
<script setup lang="ts">
defineProps({
separator: {
type: Boolean,
default: true
},
hideChevron: {
type: Boolean,
default: false
},
to: {
type: String,
default: '/'
},
name: {
type: String,
default: null
},
disableLink: {
type: Boolean,
default: false
}
})
</script>