Skip to content

Commit

Permalink
fix: position of NeCard icon (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre8244 authored May 13, 2024
1 parent f2b5edf commit bb4621c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/NeCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ defineEmits(['titleClick'])
<slot name="titleTooltip"></slot>
</span>
</div>
<!-- icon -->
<FontAwesomeIcon
v-if="icon?.length"
:icon="icon"
class="h-6 w-6 shrink-0 text-gray-400 dark:text-gray-600"
/>
<!-- top-right slot (e.g. for kebab menu) -->
<div
v-if="$slots.topRight || menuItems?.length"
Expand Down Expand Up @@ -104,11 +110,6 @@ defineEmits(['titleClick'])
<slot></slot>
</template>
</div>
<FontAwesomeIcon
v-if="icon?.length"
:icon="icon"
class="ml-4 h-6 w-6 shrink-0 text-gray-400 dark:text-gray-600"
/>
</div>
</div>
</template>

0 comments on commit bb4621c

Please sign in to comment.