Skip to content

Commit

Permalink
fix(layout): cursor pointer for the logo only
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Jun 16, 2024
1 parent 6347b77 commit 27b78ab
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions components/layout/Header/Logo.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<template>
<NuxtLink v-if="logo.light && logo.dark" to="/" class="flex">
<NuxtImg :src="logo.light" class="dark:hidden h-7" />
<NuxtImg :src="logo.dark" class="hidden dark:block h-7" />
<span v-if="showTitle && title" class="self-center font-bold ml-3">
{{ title }}
</span>
</NuxtLink>
<div>
<NuxtLink v-if="logo.light && logo.dark" to="/" class="flex">
<NuxtImg :src="logo.light" class="dark:hidden h-7" />
<NuxtImg :src="logo.dark" class="hidden dark:block h-7" />
<span v-if="showTitle && title" class="self-center font-bold ml-3">
{{ title }}
</span>
</NuxtLink>
</div>
</template>

<script setup lang="ts">
Expand Down

0 comments on commit 27b78ab

Please sign in to comment.