diff --git a/front/src/components/ui/Button.vue b/front/src/components/ui/Button.vue index b4aeec522..8e303abf2 100644 --- a/front/src/components/ui/Button.vue +++ b/front/src/components/ui/Button.vue @@ -39,7 +39,7 @@ const props = defineProps<{ const slots = useSlots() // TODO: Refactor this once upload button progress indicator can be tested (in Sidebar.vue) -const isIconOnly = computed(() => !!props.icon && (!slots.default || 'square' in props || 'squareSmall' in props)) +const isIconOnly = computed(() => !!props.icon && (!slots.default || 'square' in props && props.square || 'squareSmall' in props && props.squareSmall )) const isSplitIconOnly = computed(() => !!props.splitIcon && !props.splitTitle) const internalLoader = ref(false)