Skip to content

Commit

Permalink
fix(nuxt-auth): fix image alt
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Mar 27, 2023
1 parent 3348c39 commit 7c3c910
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions starter/nuxt-auth/components/auth/AuthLogo.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
<script setup lang="ts">
const appConfig = useAppConfig();
const imageProps = {
width: appConfig.auth.logo.width,
height: appConfig.auth.logo.height,
alt: 'Logo',
};
</script>

<template>
<img
v-if="appConfig.auth.logo.enable"
:src="appConfig.auth.logo.light"
class="mb-6 dark:hidden block"
:width="appConfig.auth.logo.width"
:height="appConfig.auth.logo.height"
v-bind="imageProps"
/>
<img
v-if="appConfig.auth.logo.enable"
:src="appConfig.auth.logo.dark"
class="mb-6 dark:block hidden"
:width="appConfig.auth.logo.width"
:height="appConfig.auth.logo.height"
v-bind="imageProps"
/>
</template>

0 comments on commit 7c3c910

Please sign in to comment.