update note display

This commit is contained in:
2023-04-29 19:10:25 +02:00
parent 4cc7c01365
commit 96e3bed77d
11 changed files with 250 additions and 61 deletions

View File

@@ -6,10 +6,9 @@ const props = defineProps<{
</script>
<template>
<a
class="mt-1 block w-full cursor-pointer rounded hover:bg-gray-200"
class="mt-1 block w-full cursor-pointer rounded hover:bg-gray-200 active:bg-primary active:text-primary-content"
:class="props.active ? 'font-bold text-primary' : 'text-secondary'"
>
<i :class="`bi bi-${props.icon}`" class="mr-2" v-if="props.icon"></i
><slot></slot>
<i :class="props.icon" class="mr-2" v-if="props.icon"></i><slot></slot>
</a>
</template>