📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Improve icons
Smaug673986f62800eb27
diff --git a/frontend/components/Icon.vue b/frontend/components/Icon.vueindex d2a16087..e6d6b5c9 100644--- a/frontend/components/Icon.vue+++ b/frontend/components/Icon.vue@@ -1,10 +1,10 @@<template>- <i v-html="icon" class="icon" :style="{ fill: props.fill }" :class="{ fill: props.fill, big: props.big }"></i>+ <i v-html="icon" class="icon" :style="{ fill }" :class="{ fill, big, mid }"></i></template><script setup lang="ts">import type { IconName } from '~/composables/icons';-const props = defineProps<{ name: IconName | string; fill?: string; big?: true }>();+const props = defineProps<{ name: IconName | string; fill?: string; big?: true; mid?: boolean }>();const icon = useIcon(props.name as IconName) || props.name;</script>@@ -16,7 +16,6 @@ const icon = useIcon(props.name as IconName) || props.name;&:deep(svg) {width: 20px;max-height: 22px;- margin-right: 5px;path {fill: inherit; // Utilise la couleur de l'élément parent }@@ -27,7 +26,12 @@ const icon = useIcon(props.name as IconName) || props.name;.fill:deep(svg) > path {fill: inherit !important; // Utilise la couleur de l'élément parent }}-+.mid {+ &:deep(svg) {+ width: 21px;+ max-height: 21px;+ }+}.big {&:deep(svg) {width: 25px;