From 55b6de86545622e549886f67864c6c4fb1519340 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 27 Jan 2025 09:49:57 +0100 Subject: [PATCH] fix(ui): treat all square/circular buttons as iconOnly (upload button in sidebar) --- front/src/components/ui/Button.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/src/components/ui/Button.vue b/front/src/components/ui/Button.vue index 482c59a06..b4aeec522 100644 --- a/front/src/components/ui/Button.vue +++ b/front/src/components/ui/Button.vue @@ -37,7 +37,9 @@ const props = defineProps<{ & AlignmentProps>() const slots = useSlots() -const isIconOnly = computed(() => !!props.icon && !slots.default) + +// 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 isSplitIconOnly = computed(() => !!props.splitIcon && !props.splitTitle) const internalLoader = ref(false)