From 275094bfee0bdf7a4afe7eb7ef8f12affbcba64f Mon Sep 17 00:00:00 2001 From: ArneBo Date: Mon, 27 Jan 2025 11:48:03 +0100 Subject: [PATCH] fix(ui): treat all square/circular buttons as iconOnly (upload button in sidebar) --- front/src/components/ui/Button.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)