Skip to content

Commit

Permalink
Update ItemIcon.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsaffar committed Jun 30, 2024
1 parent 83dfba7 commit bc46b86
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/ItemIcon.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<template>
<span>
<FolderSVG v-if="type === 'dir'" :class="{'h-5 w-5': small, 'h-10 w-10 md:h-12 md:w-12 m-auto': !small}" />
<FileSVG v-else :class="{'h-5 w-5': small, 'h-10 w-10 md:h-12 md:w-12 m-auto': !small}" />
<span class="vuefinder__item-icon">
<FolderSVG v-if="type === 'dir'" :class="small ? 'vuefinder__item-icon--small' : 'vuefinder__item-icon--large'" />
<FileSVG v-else :class="small ? 'vuefinder__item-icon--small' : 'vuefinder__item-icon--large'" />
</span>
</template>

<style>
.vuefinder__item-icon--small {
@apply h-5 w-5;
}
.vuefinder__item-icon--large {
@apply h-10 w-10 md:h-12 md:w-12 m-auto;
}
</style>

<script setup>
import {defineProps} from "vue";
import FileSVG from './icons/file.svg';
Expand Down

0 comments on commit bc46b86

Please sign in to comment.