contexted link highlight + adjust prettier

This commit is contained in:
2023-04-30 16:57:50 +02:00
parent 2ff849219b
commit 8db4583b0b
11 changed files with 53 additions and 74 deletions

View File

@@ -9,6 +9,7 @@ const props = defineProps<{
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="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>