mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
* setup icon popularity call * Adjust sort button * Adjust sorting * Adds aliases * Format code * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Add check for env variable * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Improve styling on mobile * Remove hardcoded sort icon * Fix build * Format code --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
44 lines
761 B
Vue
44 lines
761 B
Vue
<script setup lang="ts">
|
|
const { item } = defineProps<{
|
|
item: {
|
|
name: string;
|
|
icon?: string;
|
|
iconDark?: string;
|
|
};
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="item.icon || item.iconDark">
|
|
<img
|
|
v-if="item.icon"
|
|
:src="item.icon"
|
|
:class="{ 'select-item-icon': true, light: item.iconDark }"
|
|
:alt="`${item.name} logo`"
|
|
loading="lazy"
|
|
/>
|
|
<img
|
|
v-if="item.iconDark"
|
|
:src="item.iconDark"
|
|
:alt="`${item.name} logo`"
|
|
class="select-item-icon dark"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.select-item-icon {
|
|
object-fit: contain;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
html.dark .select-item-icon.light {
|
|
display: none;
|
|
}
|
|
|
|
html:not(.dark) .select-item-icon.dark {
|
|
display: none;
|
|
}
|
|
</style>
|